Conditions | 1 |
Paths | 1 |
Total Lines | 27 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
14 | public function up() |
||
15 | { |
||
16 | Schema::create('tasks', function (Blueprint $table) { |
||
17 | $table->bigIncrements('id'); |
||
18 | |||
19 | $table->foreignId('user_id')->nullable() |
||
20 | ->references(user_model()->getKeyName()) |
||
21 | ->on(user_model()->getTable()); |
||
22 | |||
23 | $table->foreignId('priority_id')->nullable() |
||
24 | ->references('id') |
||
25 | ->on('priorities'); |
||
26 | |||
27 | $table->string('title'); |
||
28 | $table->text('description')->nullable(); |
||
29 | $table->text('notes')->nullable(); |
||
30 | |||
31 | $table->boolean('complete')->nullable()->default(false); |
||
32 | |||
33 | // TODO: |
||
34 | // cost |
||
35 | // budget |
||
36 | |||
37 | // time allocated |
||
38 | $table->timestamps(); |
||
39 | }); |
||
40 | } |
||
41 | |||
52 |