Conditions | 1 |
Paths | 1 |
Total Lines | 20 |
Code Lines | 16 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
31 | public function up() |
||
32 | { |
||
33 | $this->createSchema(function (Blueprint $table) { |
||
34 | $table->bigIncrements('id'); |
||
35 | $table->string('uuid')->index(); |
||
36 | $table->unsignedBigInteger('user_id')->nullable()->index(); |
||
37 | $table->unsignedBigInteger('device_id')->nullable()->index(); |
||
38 | $table->unsignedBigInteger('agent_id')->nullable()->index(); |
||
39 | $table->unsignedBigInteger('geoip_id')->nullable()->index(); |
||
40 | $table->unsignedBigInteger('referer_id')->nullable()->index(); |
||
41 | $table->unsignedBigInteger('cookie_id')->nullable()->index(); |
||
42 | $table->unsignedBigInteger('language_id')->nullable()->index(); |
||
43 | $table->string('client_ip')->index(); |
||
44 | $table->boolean('is_robot')->default(false); |
||
45 | $table->timestamp('created_at')->index(); |
||
46 | $table->timestamp('updated_at')->index(); |
||
47 | |||
48 | $table->unique('uuid'); |
||
49 | }); |
||
50 | } |
||
51 | } |
||
52 |