Conditions | 1 |
Paths | 1 |
Total Lines | 14 |
Code Lines | 11 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
14 | public function up() |
||
15 | { |
||
16 | $tableName = config('links.tables.links'); |
||
17 | |||
18 | Schema::create($tableName, function (Blueprint $table) { |
||
19 | $table->increments('id'); |
||
20 | $table->string('url'); |
||
21 | $table->text('data'); |
||
22 | $table->dateTime('expiry')->nullable(); |
||
23 | $table->integer('click_limit')->nullable(); |
||
24 | $table->integer('clicks')->default(0); |
||
25 | $table->uuid('uuid'); |
||
26 | $table->unsignedInteger('group_id')->nullable(); |
||
27 | $table->timestamps(); |
||
28 | }); |
||
45 |