DELETE FROM tokens WHERE user_id IN (SELECT id FROM users WHERE username LIKE 'asset-admin' OR username LIKE 'asset-user');
DELETE FROM user_asset_channels WHERE user_id IN (9001, 9002);
DELETE FROM channel_asset_credentials WHERE channel_id = 9001;
DELETE FROM channels WHERE name = 'cm-asset-channel';
DELETE FROM users WHERE username LIKE 'asset-admin' OR username LIKE 'asset-user';

INSERT INTO users (id, username, password, display_name, role, status, quota, "group", access_token)
VALUES (9001, 'asset-admin', 'pbkdf2_sha256$600000$dGVzdA==$hash', '素材管理员', 1, 1, 1000000000, 'default', 'admin-asset-token-9001');
INSERT INTO users (id, username, password, display_name, role, status, quota, "group")
VALUES (9002, 'asset-user', 'pbkdf2_sha256$600000$dGVzdA==$hash', '素材用户', 0, 1, 1000000000, 'default');
INSERT INTO channels (id, type, key, status, name, "group", models, weight, priority, auto_ban, created_time)
VALUES (9001, 61, 'video-generation-key', 1, 'cm-asset-channel', 'default', 'seedance-2', 10, 1, 1, 1784103836);
INSERT INTO channel_asset_credentials (channel_id, access_key, secret_key, pool_id, created_at, updated_at)
VALUES (9001, '__CHINAMOBILE_ASSET_AK__', '__CHINAMOBILE_ASSET_SK__', '__CHINAMOBILE_ASSET_POOL_ID__', 1784103836, 1784103836);
INSERT INTO tokens (id, user_id, key, status, name, "group", expired_time, unlimited_quota)
VALUES (9001, 9001, 'assetadmintestkey00000000000000000000000000001', 1, 'asset-admin-token', 'default', -1, 1);
INSERT INTO tokens (id, user_id, key, status, name, "group", expired_time, unlimited_quota)
VALUES (9002, 9002, 'assetusertestkey000000000000000000000000000001', 1, 'asset-user-token', 'default', -1, 1);
INSERT INTO user_asset_channels (user_id, channel_type, "group", channel_id, created_at, updated_at)
VALUES (9001, 61, 'default', 9001, 1784103836, 1784103836);
