feat(seed): add 'done' acc rows and matching user records
This commit is contained in:
parent
6126430a3e
commit
dff8be829c
@ -1,8 +1,25 @@
|
||||
-- Dev-only seed. Four acc rows matching CM_PREFIX_PATTERN=13c so
|
||||
-- get_next_username has something to anchor on. Passwords are placeholder
|
||||
-- strings — never real cm99.net credentials.
|
||||
-- Dev-only seed. Passwords are placeholder strings — never real cm99.net
|
||||
-- credentials. The `acc` rows match CM_PREFIX_PATTERN=13c so
|
||||
-- get_next_username has something to anchor on.
|
||||
|
||||
-- Available pool: status='' is the "ready, not yet assigned" state read by
|
||||
-- get_all_available_acc / get_user_data_from_acc.
|
||||
INSERT INTO acc (username, password, status, link) VALUES
|
||||
('13c1000', 'seedpass', '', ''),
|
||||
('13c1001', 'seedpass', '', ''),
|
||||
('13c1002', 'seedpass', '', ''),
|
||||
('13c1003', 'seedpass', '', '');
|
||||
|
||||
-- Two completed pairs: agent accounts already linked to players. status='done'
|
||||
-- is the terminal state set by update_user_status_to_done after the security
|
||||
-- PIN is configured.
|
||||
INSERT INTO acc (username, password, status, link) VALUES
|
||||
('13c1010', 'seedpass-completed', 'done', 'https://chat.whatsapp.com/SEED-EXAMPLE-1'),
|
||||
('13c1011', 'seedpass-completed', 'done', 'https://chat.whatsapp.com/SEED-EXAMPLE-2');
|
||||
|
||||
-- Each `user` row matches one of the 'done' acc rows above. f_username/f_password
|
||||
-- mirror the agent (acc) credentials; t_username/t_password are the player side
|
||||
-- (t_password is the security pin set on cm99.net).
|
||||
INSERT INTO user (f_username, f_password, t_username, t_password) VALUES
|
||||
('13c1010', 'seedpass-completed', 'player_one_seed', '000000'),
|
||||
('13c1011', 'seedpass-completed', 'player_two_seed', '000000');
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user