Schemas.php 752 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. use Illuminate\Database\Migrations\Migration;
  3. use Illuminate\Database\Schema\Blueprint;
  4. use Illuminate\Support\Facades\Schema;
  5. return new class () extends Migration {
  6. public function up()
  7. {
  8. Schema::create('schemas', function (Blueprint $table) {
  9. $table->increments('id');
  10. $table->string('module')->nullable(false)->comment('模块名称');
  11. $table->string('name')->nullable(false)->comment('schema 名称');
  12. $table->string('columns')->nullable(false)->comment('字段');
  13. $table->boolean('is_soft_delete')->default(1)->comment('1 是 2 否');
  14. $table->createdAt();
  15. $table->updatedAt();
  16. $table->deletedAt();
  17. });
  18. }
  19. };