You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
1003 B

11 years ago
-- Initial database pre data
11 years ago
-- admin, password is admin
11 years ago
insert into user_(id,guid,create_time,email,password,phone,username,default_user)
values
11 years ago
(21,'29f6004fb1b0466f9572b02bf2ac1be8',now(),'admin@wdcy.cc','21232f297a57a5a743894a0e4a801fc3','028-1234567','admin',true);
11 years ago
-- initial oauth client details test data
-- 'unity-client' support browser,mobile-device visit
-- 'mobile-client' only support mobile-device visit
11 years ago
truncate oauth_client_details;
insert into oauth_client_details
(client_id, resource_ids, client_secret, scope, authorized_grant_types,
web_server_redirect_uri,authorities, access_token_validity,
refresh_token_validity, additional_information, create_time, archived, trusted)
values
('unity-client','unity-resource', 'unity', 'read,write','password,authorization_code,refresh_token,implicit',
null,'ROLE_CLIENT',null,
11 years ago
null,null, now(), 0, 0),
('mobile-client','mobile-resource', 'mobile', 'read,write','password,refresh_token',
null,'ROLE_CLIENT',null,
11 years ago
null,null, now(), 0, 0);