Conditions | 1 |
Paths | 1 |
Total Lines | 22 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
14 | public function up() |
||
15 | { |
||
16 | Schema::create('action_events', function (Blueprint $table) { |
||
17 | $table->id(); |
||
18 | $table->char('batch_id', 36); |
||
19 | $table->unsignedBigInteger('user_id')->index(); |
||
20 | $table->string('name'); |
||
21 | $table->string('actionable_type'); |
||
22 | $table->unsignedBigInteger('actionable_id'); |
||
23 | $table->string('target_type'); |
||
24 | $table->unsignedBigInteger('target_id'); |
||
25 | $table->string('model_type'); |
||
26 | $table->unsignedBigInteger('model_id')->nullable(); |
||
27 | $table->text('fields'); |
||
28 | $table->string('status', 25)->default('running'); |
||
29 | $table->text('exception'); |
||
30 | $table->timestamps(); |
||
31 | |||
32 | $table->index(['actionable_type', 'actionable_id']); |
||
33 | $table->index(['batch_id', 'model_type', 'model_id']); |
||
34 | }); |
||
35 | } |
||
36 | |||
47 |