Conditions | 1 |
Paths | 1 |
Total Lines | 17 |
Code Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
9 | public function up() |
||
10 | { |
||
11 | Schema::create('polar_notifications', function (Blueprint $table) { |
||
12 | $table->bigIncrements('id'); |
||
13 | |||
14 | $table->integer('user_id', false, true); |
||
15 | $table->string('from')->default('system'); |
||
16 | $table->string('status', 10)->defaul('info'); |
||
17 | $table->text('body'); |
||
18 | $table->string('url')->nullable(); |
||
19 | $table->json('extra'); |
||
20 | $table->tinyInteger('read')->default(0); |
||
21 | |||
22 | $table->timestamps(); |
||
23 | $table->index(['user_id', 'created_at']); |
||
24 | }); |
||
25 | } |
||
26 | |||
32 |