KTVCentral/database/migrations/2025_05_23_031625_create_artists_table.php
allen.yan 7c8c3fe69b DB 滙入
User 介面 只能看資料不能做修改
Role 介面移除
Branch介面 只能看資料不能做修改
Room 介面 可操控 包廂開關台
Sqgger API 可操控API
Room 有操控異動記錄
machine_statuses 需做資料留存需留7 天
20250528
2025-05-28 09:24:03 +08:00

35 lines
1.1 KiB
PHP
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?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('artists', function (Blueprint $table) {
$table->bigIncrements('id');
$table->enum('category', ['未定義','男', '女','團','外', '其他'])->default('未定義')->index()->comment('歌星類別');
$table->string('name')->unique()->comment('歌星名稱');
$table->string('simplified')->index()->comment('歌星簡體');
$table->string('phonetic_abbr')->index()->comment('歌星注音');
$table->string('pinyin_abbr')->index()->comment('歌星拼音');
$table->integer('strokes_abbr')->index()->comment('歌星筆劃');
$table->tinyInteger('enable')->default(1)->comment('狀態'); // 1,可看0,不可看
$table->timestamps();
});
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::dropIfExists('artists');
}
};