first commit
This commit is contained in:
41
database/migrations/2025_06_06_024742_create_news_table.php
Normal file
41
database/migrations/2025_06_06_024742_create_news_table.php
Normal file
@ -0,0 +1,41 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
|
||||
class CreateNewsTable extends Migration
|
||||
{
|
||||
/**
|
||||
* Run the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function up()
|
||||
{
|
||||
Schema::create('news', function (Blueprint $table) {
|
||||
$table->bigIncrements('id');
|
||||
$table->biginteger('news_catalog_id')->default(0);
|
||||
$table->boolean('is_front_show')->default(true);
|
||||
$table->dateTime('post_at')->useCurrent();
|
||||
$table->text('seo_title')->nullable();
|
||||
$table->text('seo_keyword')->nullable();
|
||||
$table->text('seo_description')->nullable();
|
||||
$table->text('title');
|
||||
$table->text('description');
|
||||
$table->text('body');
|
||||
$table->text('source_links')->nullable();
|
||||
$table->text('photos')->nullalbe();
|
||||
$table->timestamps();
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Reverse the migrations.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
public function down()
|
||||
{
|
||||
Schema::dropIfExists('news');
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user