| Conditions | 1 |
| Paths | 1 |
| Total Lines | 18 |
| Code Lines | 16 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 14 | public function up() |
||
| 15 | { |
||
| 16 | Schema::create('clicks', function (Blueprint $table) { |
||
| 17 | $table->id(); |
||
| 18 | $table->bigInteger('url_id')->unsigned(); |
||
| 19 | $table->foreign('url_id')->references('id')->on('urls')->onDelete('cascade'); |
||
| 20 | $table->string('country')->nullable(); |
||
| 21 | $table->string('region')->nullable(); |
||
| 22 | $table->string('city')->nullable(); |
||
| 23 | $table->string('device_type')->nullable(); |
||
| 24 | $table->string('device_brand')->nullable(); |
||
| 25 | $table->string('device_model')->nullable(); |
||
| 26 | $table->string('os')->nullable(); |
||
| 27 | $table->string('browser')->nullable(); |
||
| 28 | $table->text('referer')->nullable(); |
||
| 29 | $table->string('referer_host')->nullable(); |
||
| 30 | $table->text('user_agent')->nullable(); |
||
| 31 | $table->dateTime('created_at'); |
||
| 32 | }); |
||
| 45 |