| Conditions | 1 |
| Paths | 1 |
| Total Lines | 23 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 23 | public function up() |
||
| 24 | { |
||
| 25 | Schema::create('tickets', function (Blueprint $table) { |
||
| 26 | $table->bigIncrements('id'); |
||
| 27 | |||
| 28 | //if the user has loggin you can save the user id |
||
| 29 | $table->integer('eventid')->nullable(); |
||
| 30 | $table->foreignId('eventid') |
||
| 31 | ->constrained() |
||
| 32 | ->onUpdate('cascade') |
||
| 33 | ->onDelete('cascade'); |
||
| 34 | $table->string('name'); |
||
| 35 | $table->integer('amount'); |
||
| 36 | $table->integer('quantity'); |
||
| 37 | $table->text('description')->nullable(); |
||
| 38 | $table->text('status')->nullable(); |
||
| 39 | $table->integer('minimum_order')->default(1); |
||
| 40 | $table->integer('maximum_order')->default(1); |
||
| 41 | $table->integer('hide_on_sold_out')->default(1); |
||
| 42 | $table->integer('show_quantity_remaining')->default(1); |
||
| 43 | $table->timestamps(); |
||
| 44 | }); |
||
| 45 | } |
||
| 46 | |||
| 57 |