diff --git a/app/Http/Controllers/AuditionController.php b/app/Http/Controllers/AuditionController.php new file mode 100644 index 0000000..b947da1 --- /dev/null +++ b/app/Http/Controllers/AuditionController.php @@ -0,0 +1,10 @@ + + */ +class AuditionFactory extends Factory +{ + /** + * Define the model's default state. + * + * @return array + */ + public function definition(): array + { + return [ + // + ]; + } +} diff --git a/database/factories/EventFactory.php b/database/factories/EventFactory.php new file mode 100644 index 0000000..41c6c10 --- /dev/null +++ b/database/factories/EventFactory.php @@ -0,0 +1,23 @@ + + */ +class EventFactory extends Factory +{ + /** + * Define the model's default state. + * + * @return array + */ + public function definition(): array + { + return [ + // + ]; + } +} diff --git a/database/migrations/2024_05_31_004428_create_events_table.php b/database/migrations/2024_05_31_004428_create_events_table.php new file mode 100644 index 0000000..538f11f --- /dev/null +++ b/database/migrations/2024_05_31_004428_create_events_table.php @@ -0,0 +1,28 @@ +id(); + $table->string('name'); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::dropIfExists('events'); + } +}; diff --git a/database/migrations/2024_05_31_004546_create_auditions_table.php b/database/migrations/2024_05_31_004546_create_auditions_table.php new file mode 100644 index 0000000..0f4181f --- /dev/null +++ b/database/migrations/2024_05_31_004546_create_auditions_table.php @@ -0,0 +1,33 @@ +id(); + $table->foreignIdFor(Event::class)->constrained()->cascadeOnUpdate()->restrictOnDelete(); + $table->string('name'); + $table->integer('order')->nullable()->unique(); + $table->date(('entry_deadline')); + $table->integer('entry_fee'); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::dropIfExists('auditions'); + } +};