From a34940d22cfe51a35abc991375a3980e036ccf0b Mon Sep 17 00:00:00 2001 From: Matt Young Date: Thu, 18 Dec 2025 14:44:05 -0600 Subject: [PATCH] Add NewsStory model and migration MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 --- app/Models/NewsStory.php | 10 ++++++ ...12_18_203202_create_news_stories_table.php | 32 +++++++++++++++++++ 2 files changed, 42 insertions(+) create mode 100644 app/Models/NewsStory.php create mode 100644 database/migrations/2025_12_18_203202_create_news_stories_table.php diff --git a/app/Models/NewsStory.php b/app/Models/NewsStory.php new file mode 100644 index 0000000..b0a949d --- /dev/null +++ b/app/Models/NewsStory.php @@ -0,0 +1,10 @@ +id(); + $table->string('headline'); + $table->text('body'); + $table->date('start_publication_date')->nullable(); + $table->date('stop_publication_date')->nullable(); + $table->string('active'); + $table->timestamps(); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::dropIfExists('news_stories'); + } +};