master_template/database/migrations/2024_06_10_100950_create_tbl_preparationclassoffers.php

46 lines
1.5 KiB
PHP
Raw Permalink Normal View History

2024-06-10 12:21:58 +00:00
<?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('preparationclassoffers', function (Blueprint $table) {
$table->id('preparationclassoffer_id');
$table->integer('preparationclasses_id')->nullable();
$table->string('title', 255)->nullable();
$table->string('alias', 255)->nullable();
$table->time('classtime')->nullable();
$table->text('details')->nullable();
$table->text('intro')->nullable();
$table->string('image', 255)->nullable();
$table->string('thumb', 255)->nullable();
$table->string('cover', 255)->nullable();
$table->text('remarks')->nullable();
$table->integer('display_order')->default(1);
$table->integer('status')->default(1);
$table->timestamps();
$table->text('seo_keywords')->nullable();
$table->text('seo_title')->nullable();
$table->text('seo_descriptions')->nullable();
$table->text('og_tags')->nullable();
$table->integer('createdby')->nullable();
$table->integer('updatedby')->nullable();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('preparationclassoffers');
}
};