|
|
@@ -14,9 +14,9 @@ public function up(): void
|
|
|
{
|
|
|
Schema::create('countries', function (Blueprint $table) {
|
|
|
$table->id();
|
|
|
- $table->string('name', 100)->comment('国家/地区名称');
|
|
|
- $table->string('code', 2)->unique()->comment('国家/地区代码(2位字母)');
|
|
|
- $table->string('flag', 255)->comment('国旗图标URL');
|
|
|
+ $table->string('name', 100)->unique()->comment('国家/地区名称');
|
|
|
+ $table->string('code', 25)->nullable()->comment('国家/地区代码');
|
|
|
+ $table->string('flag', 255)->nullable()->comment('国旗图标URL');
|
|
|
$table->integer('status')->nullable()->default(1)->comment('状态: 1-正常, 0-禁用');
|
|
|
$table->timestamps();
|
|
|
$table->comment('国家/地区表');
|