| Conditions | 1 |
| Paths | 1 |
| Total Lines | 18 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | public function up() |
||
| 17 | { |
||
| 18 | Schema::create(config('rinvex.bookings.tables.ticketable_tickets'), function (Blueprint $table) { |
||
| 19 | // Columns |
||
| 20 | $table->increments('id'); |
||
| 21 | $table->morphs('ticketable'); |
||
| 22 | $table->string('slug'); |
||
| 23 | $table->{$this->jsonable()}('name'); |
||
| 24 | $table->{$this->jsonable()}('description')->nullable(); |
||
| 25 | $table->boolean('is_active')->default(true); |
||
| 26 | $table->decimal('price')->default('0.00'); |
||
| 27 | $table->string('currency', 3)->nullable(); |
||
| 28 | $table->integer('quantity')->nullable()->default(-1); |
||
| 29 | $table->mediumInteger('sort_order')->unsigned()->default(0); |
||
| 30 | $table->timestamps(); |
||
| 31 | $table->softDeletes(); |
||
| 32 | }); |
||
| 33 | } |
||
| 34 | |||
| 59 |