first commit
This commit is contained in:
28
modules/Develop/database/migrations/Schemas.php
Normal file
28
modules/Develop/database/migrations/Schemas.php
Normal file
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
|
||||
return new class () extends Migration {
|
||||
public function up()
|
||||
{
|
||||
Schema::create('schemas', function (Blueprint $table) {
|
||||
$table->increments('id');
|
||||
|
||||
$table->string('module')->nullable(false)->comment('模块名称');
|
||||
|
||||
$table->string('name')->nullable(false)->comment('schema 名称');
|
||||
|
||||
$table->string('columns')->nullable(false)->comment('字段');
|
||||
|
||||
$table->boolean('is_soft_delete')->default(1)->comment('1 是 2 否');
|
||||
|
||||
$table->createdAt();
|
||||
|
||||
$table->updatedAt();
|
||||
|
||||
$table->deletedAt();
|
||||
});
|
||||
}
|
||||
};
|
Reference in New Issue
Block a user