完成評審評分機制
This commit is contained in:
22
scripts/quick-fix.sql
Normal file
22
scripts/quick-fix.sql
Normal file
@@ -0,0 +1,22 @@
|
||||
-- =====================================================
|
||||
-- 快速修復外鍵約束問題
|
||||
-- =====================================================
|
||||
|
||||
-- 插入虛擬應用記錄
|
||||
INSERT IGNORE INTO apps (
|
||||
id, name, description, creator_id, category, type,
|
||||
app_url, icon, icon_color, likes_count, views_count,
|
||||
rating, is_active, created_at, updated_at
|
||||
) VALUES (
|
||||
'team_t1757702332911zcl6iafq1',
|
||||
'[團隊評分] aaa',
|
||||
'團隊 aaa 的評分記錄',
|
||||
'00000000-0000-0000-0000-000000000000',
|
||||
'team_scoring',
|
||||
'team',
|
||||
NULL, 'Users', 'from-gray-500 to-gray-600',
|
||||
0, 0, 0.00, TRUE, NOW(), NOW()
|
||||
);
|
||||
|
||||
-- 驗證創建結果
|
||||
SELECT id, name, type FROM apps WHERE id = 'team_t1757702332911zcl6iafq1';
|
Reference in New Issue
Block a user