From adfe2a9fe1c51c74d893a0c73a640d12fff52792 Mon Sep 17 00:00:00 2001 From: Quentin T'JAMPENS Date: Mon, 27 Oct 2025 22:46:35 +0100 Subject: [PATCH] Create event table --- app/Models/Events.php | 13 +++++++++ .../2025_10_27_211752_create_events_table.php | 29 +++++++++++++++++++ 2 files changed, 42 insertions(+) create mode 100644 app/Models/Events.php create mode 100644 database/migrations/2025_10_27_211752_create_events_table.php diff --git a/app/Models/Events.php b/app/Models/Events.php new file mode 100644 index 0000000..7db1e16 --- /dev/null +++ b/app/Models/Events.php @@ -0,0 +1,13 @@ +id(); + $table->string('name'); + $table->string('description'); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::dropIfExists('events'); + } +};