Conditions | 1 |
Paths | 1 |
Total Lines | 18 |
Code Lines | 15 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
14 | public function up() |
||
15 | { |
||
16 | Schema::create('audits', function (Blueprint $table) { |
||
17 | $table->bigIncrements('id'); |
||
18 | $table->uuid('uuid')->default('-'); |
||
19 | $table->string('user_type')->nullable(); |
||
20 | $table->unsignedBigInteger('user_id')->nullable(); |
||
21 | $table->string('event'); |
||
22 | $table->morphs('auditable'); |
||
23 | $table->text('old_values')->nullable(); |
||
24 | $table->text('new_values')->nullable(); |
||
25 | $table->text('url')->nullable(); |
||
26 | $table->ipAddress('ip_address')->nullable(); |
||
27 | $table->string('user_agent', 1023)->nullable(); |
||
28 | $table->string('tags')->nullable(); |
||
29 | $table->timestamps(); |
||
30 | |||
31 | $table->index(['user_id', 'user_type']); |
||
32 | }); |
||
45 |