調整 FavoriteSongs 資料塞值改用seeder 加入 user_song table /api/room/receiveRegister 調整邏輯 room介面 開關包帳功能調整 寫入心跳封包 20250522
23 lines
490 B
PHP
23 lines
490 B
PHP
<?php
|
|
|
|
namespace Database\Seeders;
|
|
|
|
use Illuminate\Database\Seeder;
|
|
use Illuminate\Support\Facades\DB;
|
|
use Illuminate\Support\Carbon;
|
|
|
|
class FavoriteSongsSeeder extends Seeder
|
|
{
|
|
/**
|
|
* Run the database seeds.
|
|
*/
|
|
public function run(): void
|
|
{
|
|
DB::table('FavoriteSongs')->insert([
|
|
'songNumber' => 999996,
|
|
'userPhone' => '0912345678',
|
|
'created_at' => Carbon::now(),
|
|
'updated_at' => Carbon::now(),
|
|
]);
|
|
}
|
|
} |