From b7a395dfaab7feb2165ee8faebc2195d3f505b9d Mon Sep 17 00:00:00 2001 From: Matt Young Date: Tue, 27 Jan 2026 20:29:16 -0600 Subject: [PATCH] Contact model and migraton --- app/Models/Contact.php | 10 ++++++ ...026_01_28_015905_create_contacts_table.php | 31 +++++++++++++++++++ 2 files changed, 41 insertions(+) create mode 100644 app/Models/Contact.php create mode 100644 database/migrations/2026_01_28_015905_create_contacts_table.php diff --git a/app/Models/Contact.php b/app/Models/Contact.php new file mode 100644 index 0000000..98d1b44 --- /dev/null +++ b/app/Models/Contact.php @@ -0,0 +1,10 @@ +id(); + $table->string('first_name'); + $table->string('last_name'); + $table->string('email')->unique(); + $table->string('phone')->nullable(); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::dropIfExists('contacts'); + } +};