Advertisement
iviser

References table schema

Oct 22nd, 2017
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.35 KB | None | 0 0
  1. Schema::create('references', function (Blueprint $
  2.     $table->integer('model_id');
  3.     $table->string('model_type');
  4.     $table->integer('reference_id');
  5.     $table->string('reference_type');
  6.     $table->string('collection')->default('default');
  7.     $table->timestamps();
  8.     $table->index(['model_id', 'model_type', 'reference_id', 'reference_type']);
  9. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement