Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
14 | public function up() |
||
15 | { |
||
16 | Schema::create('customer_notes', function (Blueprint $table) { |
||
17 | $table->increments('note_id'); |
||
18 | $table->integer('cust_id')->unsigned(); |
||
19 | $table->integer('user_id')->unsigned(); |
||
20 | $table->boolean('urgent')->default(0)->nullable(); |
||
21 | $table->text('subject'); |
||
22 | $table->longText('description'); |
||
23 | $table->timestamps(); |
||
24 | $table->foreign('cust_id')->references('cust_id')->on('customers')->onUpdate('cascade')->onDelete('cascade'); |
||
25 | $table->foreign('user_id')->references('user_id')->on('users')->onUpdate('cascade'); |
||
26 | }); |
||
39 |