Add NewsStory model and migration

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
Matt Young 2025-12-18 14:44:05 -06:00
parent cc831c026d
commit a34940d22c
2 changed files with 42 additions and 0 deletions

10
app/Models/NewsStory.php Normal file
View File

@ -0,0 +1,10 @@
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
class NewsStory extends Model
{
//
}

View File

@ -0,0 +1,32 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::create('news_stories', function (Blueprint $table) {
$table->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');
}
};