bigIncrements('id')->comment('歌曲編號'); $table->string('name')->nullable()->index()->comment('歌曲檔名'); $table->string('filename')->index()->comment('歌曲檔名'); $table->date('adddate')->index()->comment('新增日期'); $table->enum('language_type', ['未定義','國語','台語','英語','日語','粵語','韓語','越語','客語','其他'])->default('未定義')->index()->comment('語別'); $table->integer('db_change')->default(0)->index()->comment('DB加減'); $table->tinyInteger('vocal')->index()->comment('人聲'); // 0,1 $table->enum('situation', ['未定義','浪漫', '柔和','動感','明亮'])->default('未定義')->index()->comment('情境'); $table->string('copyright01')->nullable()->comment('版權01'); $table->string('copyright02')->nullable()->comment('版權02'); $table->string('note01')->nullable()->comment('備註01'); $table->string('note02')->nullable()->comment('備註02'); $table->string('note03')->nullable()->comment('備註03'); $table->string('note04')->nullable()->comment('備註04'); $table->tinyInteger('enable')->default(1)->comment('狀態'); // 1,可看,0,不可看 $table->string('simplified')->index()->comment('歌曲簡體'); $table->string('phonetic_abbr')->index()->comment('歌曲注音'); $table->string('pinyin_abbr')->index()->comment('歌曲拼音'); $table->integer('strokes_abbr')->default(0)->index()->comment('歌曲筆劃'); $table->integer('song_number')->default(0)->index()->comment('歌曲字數'); $table->integer('song_counts')->default(0)->index()->comment('點播次數'); $table->timestamps(); }); } /** * Reverse the migrations. */ public function down(): void { Schema::dropIfExists('songs'); } };