| Conditions | 1 |
| Paths | 1 |
| Total Lines | 9 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | public function up() |
||
| 15 | { |
||
| 16 | Schema::create('event_organizer', function (Blueprint $table) { |
||
| 17 | $table->id(); |
||
| 18 | |||
| 19 | $table->foreignId('event_id')->constrained()->onDelete('cascade'); //When delete event delete all the relations in this table relations |
||
| 20 | $table->foreignId('organizer_id')->constrained(); |
||
| 21 | |||
| 22 | $table->timestamps(); |
||
| 23 | }); |
||
| 36 |