|
@@ -14,6 +14,12 @@ return new class extends Migration
|
|
Schema::create('articles', function (Blueprint $table) {
|
|
Schema::create('articles', function (Blueprint $table) {
|
|
$table->id();
|
|
$table->id();
|
|
$table->timestamps();
|
|
$table->timestamps();
|
|
|
|
+ $table->softDeletes();
|
|
|
|
+ $table->string("title");
|
|
|
|
+ $table->text("content");
|
|
|
|
+ $table->timestamp("published_at");
|
|
|
|
+ $table->timestamp("unpublished_at");
|
|
|
|
+ $table->tinyInteger("status")->unsigned()->default(0);
|
|
});
|
|
});
|
|
}
|
|
}
|
|
|
|
|