This commit is contained in:
2023-11-24 20:49:19 +08:00
parent ca5219cb93
commit be14f5fdb1
65 changed files with 1991 additions and 2214 deletions

View File

@@ -15,11 +15,13 @@ public function up(): void
$table->id();
$table->string('title')->nullable();
$table->string('slug')->nullable();
$table->text('cliffhanger')->nullable();
$table->mediumText('excerpt')->nullable();
$table->foreignId('author_id')->nullable();
$table->datetime('publish_date')->nullable();
$table->boolean('featured')->default(false);
$table->string('featured_image')->nullable();
$table->enum('editor', ['editorjs'])->default('editorjs');
$table->enum('editor', ['editorjs', 'markdown'])->default('editorjs');
$table->json('body')->nullable();
$table->enum('post_format', ['standard'])->default('standard');
$table->integer('comment_count')->default(0);