-- ====================
-- region 填充数据
-- ====================

insert into client (type, spec, name, client_id, client_secret, redirect_uri) values (1, 3, 'web', 'web', '$2a$10$Ss12mXQgpYyo1CKIZ3URouDm.Lc2KcYJzsvEK2PTIXlv6fHQht45a', '');
insert into client (type, spec, name, client_id, client_secret, redirect_uri) values (1, 3, 'admin', 'admin', '$2a$10$dlfvX5Uf3iVsUWgwlb0Wt.oYsw/OEXgS.Aior3yoT63Ju7ZSsJr/2', '');

insert into product (code, name, description) values ('short', '短效动态', '短效动态');
insert into product (code, name, description) values ('long', '长效动态', '长效动态');
insert into product (code, name, description) values ('static', '长效静态', '长效静态');

delete from permission where true;
insert into permission
    (name, description)
values
    ('permission:read', '读取权限列表'),
    ('permission:write', '写入权限'),
    ('admin-role:read', '读取管理员角色列表'),
    ('admin-role:write', '写入管理员角色')
;
-- endregion
