mirror of
https://github.com/aykhans/slash-e.git
synced 2025-07-04 12:26:19 +00:00
chore: add seeding data
This commit is contained in:
49
store/db/seed/10001__user.sql
Normal file
49
store/db/seed/10001__user.sql
Normal file
@ -0,0 +1,49 @@
|
||||
INSERT INTO
|
||||
user (
|
||||
`id`,
|
||||
`email`,
|
||||
`name`,
|
||||
`password_hash`
|
||||
)
|
||||
VALUES
|
||||
(
|
||||
101,
|
||||
'demo@iamcorgi.com',
|
||||
'Demo Host',
|
||||
-- raw password: secret
|
||||
'$2a$14$ajq8Q7fbtFRQvXpdCq7Jcuy.Rx1h/L4J60Otx.gyNLbAYctGMJ9tK'
|
||||
);
|
||||
|
||||
INSERT INTO
|
||||
user (
|
||||
`id`,
|
||||
`email`,
|
||||
`name`,
|
||||
`password_hash`
|
||||
)
|
||||
VALUES
|
||||
(
|
||||
102,
|
||||
'jack@iamcorgi.com',
|
||||
'Jack',
|
||||
-- raw password: secret
|
||||
'$2a$14$ajq8Q7fbtFRQvXpdCq7Jcuy.Rx1h/L4J60Otx.gyNLbAYctGMJ9tK'
|
||||
);
|
||||
|
||||
INSERT INTO
|
||||
user (
|
||||
`id`,
|
||||
`row_status`,
|
||||
`email`,
|
||||
`name`,
|
||||
`password_hash`
|
||||
)
|
||||
VALUES
|
||||
(
|
||||
103,
|
||||
'ARCHIVED',
|
||||
'bob@iamcorgi.com',
|
||||
'Bob',
|
||||
-- raw password: secret
|
||||
'$2a$14$ajq8Q7fbtFRQvXpdCq7Jcuy.Rx1h/L4J60Otx.gyNLbAYctGMJ9tK'
|
||||
);
|
14
store/db/seed/10002__workspace.sql
Normal file
14
store/db/seed/10002__workspace.sql
Normal file
@ -0,0 +1,14 @@
|
||||
INSERT INTO
|
||||
workspace (
|
||||
`id`,
|
||||
`creator_id`,
|
||||
`name`,
|
||||
`description`
|
||||
)
|
||||
VALUES
|
||||
(
|
||||
11,
|
||||
101,
|
||||
'Demo',
|
||||
''
|
||||
);
|
12
store/db/seed/10003__workspace_user.sql
Normal file
12
store/db/seed/10003__workspace_user.sql
Normal file
@ -0,0 +1,12 @@
|
||||
INSERT INTO
|
||||
workspace_user (
|
||||
`workspace_id`,
|
||||
`user_id`,
|
||||
`role`
|
||||
)
|
||||
VALUES
|
||||
(
|
||||
11,
|
||||
101,
|
||||
'ADMIN'
|
||||
);
|
16
store/db/seed/10004__shortcut.sql
Normal file
16
store/db/seed/10004__shortcut.sql
Normal file
@ -0,0 +1,16 @@
|
||||
INSERT INTO
|
||||
shortcut (
|
||||
`creator_id`,
|
||||
`workspace_id`,
|
||||
`name`,
|
||||
`link`,
|
||||
`visibility`
|
||||
)
|
||||
VALUES
|
||||
(
|
||||
101,
|
||||
11,
|
||||
'baidu',
|
||||
'https://baidu.com',
|
||||
'WORKSPACE'
|
||||
);
|
Reference in New Issue
Block a user