Conditions | 1 |
Paths | 1 |
Total Lines | 14 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
14 | public function up() |
||
15 | { |
||
16 | Schema::create('product_item_details', function (Blueprint $table) { |
||
17 | $table->id(); |
||
18 | $table->unsignedBigInteger('product_item_id'); |
||
19 | $table->unsignedBigInteger('product_detail_id'); |
||
20 | $table->unsignedBigInteger('product_detail_value_id'); |
||
21 | |||
22 | $table->timestamps(); |
||
23 | |||
24 | //foreign |
||
25 | $table->foreign('product_item_id')->references('id')->on('product_items'); |
||
26 | $table->foreign('product_detail_id')->references('id')->on('details'); |
||
27 | $table->foreign('product_detail_value_id')->references('id')->on('detail_values'); |
||
28 | |||
42 |