mirror of
https://github.com/aykhans/slash-e.git
synced 2025-04-20 22:07:15 +00:00
chore: update seeding data
This commit is contained in:
parent
5c73f6dd00
commit
7f29882ebf
@ -9,9 +9,27 @@ INSERT INTO
|
|||||||
VALUES
|
VALUES
|
||||||
(
|
(
|
||||||
101,
|
101,
|
||||||
'demo@iamcorgi.com',
|
'frank@iamcorgi.com',
|
||||||
'Demo Host',
|
'Frank',
|
||||||
-- raw password: secret
|
-- raw password: secret
|
||||||
'$2a$14$ajq8Q7fbtFRQvXpdCq7Jcuy.Rx1h/L4J60Otx.gyNLbAYctGMJ9tK',
|
'$2a$14$ajq8Q7fbtFRQvXpdCq7Jcuy.Rx1h/L4J60Otx.gyNLbAYctGMJ9tK',
|
||||||
'demo_open_id'
|
'frank_open_id'
|
||||||
|
);
|
||||||
|
|
||||||
|
INSERT INTO
|
||||||
|
user (
|
||||||
|
`id`,
|
||||||
|
`email`,
|
||||||
|
`name`,
|
||||||
|
`password_hash`,
|
||||||
|
`open_id`
|
||||||
|
)
|
||||||
|
VALUES
|
||||||
|
(
|
||||||
|
102,
|
||||||
|
'bob@iamcorgi.com',
|
||||||
|
'Bob',
|
||||||
|
-- raw password: secret
|
||||||
|
'$2a$14$ajq8Q7fbtFRQvXpdCq7Jcuy.Rx1h/L4J60Otx.gyNLbAYctGMJ9tK',
|
||||||
|
'bob_open_id'
|
||||||
);
|
);
|
||||||
|
@ -9,6 +9,21 @@ VALUES
|
|||||||
(
|
(
|
||||||
11,
|
11,
|
||||||
101,
|
101,
|
||||||
'demo',
|
'minecraft',
|
||||||
|
''
|
||||||
|
);
|
||||||
|
|
||||||
|
INSERT INTO
|
||||||
|
workspace (
|
||||||
|
`id`,
|
||||||
|
`creator_id`,
|
||||||
|
`name`,
|
||||||
|
`description`
|
||||||
|
)
|
||||||
|
VALUES
|
||||||
|
(
|
||||||
|
12,
|
||||||
|
102,
|
||||||
|
'bob-room',
|
||||||
''
|
''
|
||||||
);
|
);
|
||||||
|
@ -10,3 +10,29 @@ VALUES
|
|||||||
101,
|
101,
|
||||||
'ADMIN'
|
'ADMIN'
|
||||||
);
|
);
|
||||||
|
|
||||||
|
INSERT INTO
|
||||||
|
workspace_user (
|
||||||
|
`workspace_id`,
|
||||||
|
`user_id`,
|
||||||
|
`role`
|
||||||
|
)
|
||||||
|
VALUES
|
||||||
|
(
|
||||||
|
12,
|
||||||
|
102,
|
||||||
|
'ADMIN'
|
||||||
|
);
|
||||||
|
|
||||||
|
INSERT INTO
|
||||||
|
workspace_user (
|
||||||
|
`workspace_id`,
|
||||||
|
`user_id`,
|
||||||
|
`role`
|
||||||
|
)
|
||||||
|
VALUES
|
||||||
|
(
|
||||||
|
12,
|
||||||
|
101,
|
||||||
|
'USER'
|
||||||
|
);
|
||||||
|
@ -35,3 +35,60 @@ VALUES
|
|||||||
'B站',
|
'B站',
|
||||||
'PUBLIC'
|
'PUBLIC'
|
||||||
);
|
);
|
||||||
|
|
||||||
|
INSERT INTO
|
||||||
|
shortcut (
|
||||||
|
`creator_id`,
|
||||||
|
`workspace_id`,
|
||||||
|
`name`,
|
||||||
|
`link`,
|
||||||
|
`description`,
|
||||||
|
`visibility`
|
||||||
|
)
|
||||||
|
VALUES
|
||||||
|
(
|
||||||
|
101,
|
||||||
|
11,
|
||||||
|
'ph',
|
||||||
|
'https://producthunt.com',
|
||||||
|
'PH',
|
||||||
|
'PRIVATE'
|
||||||
|
);
|
||||||
|
|
||||||
|
INSERT INTO
|
||||||
|
shortcut (
|
||||||
|
`creator_id`,
|
||||||
|
`workspace_id`,
|
||||||
|
`name`,
|
||||||
|
`link`,
|
||||||
|
`description`,
|
||||||
|
`visibility`
|
||||||
|
)
|
||||||
|
VALUES
|
||||||
|
(
|
||||||
|
101,
|
||||||
|
12,
|
||||||
|
'github',
|
||||||
|
'https://producthunt.com',
|
||||||
|
'GitHub',
|
||||||
|
'PRIVATE'
|
||||||
|
);
|
||||||
|
|
||||||
|
INSERT INTO
|
||||||
|
shortcut (
|
||||||
|
`creator_id`,
|
||||||
|
`workspace_id`,
|
||||||
|
`name`,
|
||||||
|
`link`,
|
||||||
|
`description`,
|
||||||
|
`visibility`
|
||||||
|
)
|
||||||
|
VALUES
|
||||||
|
(
|
||||||
|
102,
|
||||||
|
12,
|
||||||
|
'go',
|
||||||
|
'https://google.com',
|
||||||
|
'google',
|
||||||
|
'WORKSPACE'
|
||||||
|
);
|
||||||
|
@ -30,7 +30,7 @@ const Auth: React.FC = () => {
|
|||||||
api.getSystemStatus().then(({ data }) => {
|
api.getSystemStatus().then(({ data }) => {
|
||||||
const { data: status } = data;
|
const { data: status } = data;
|
||||||
if (status.profile.mode === "dev") {
|
if (status.profile.mode === "dev") {
|
||||||
setEmail("demo@iamcorgi.com");
|
setEmail("frank@iamcorgi.com");
|
||||||
setPassword("secret");
|
setPassword("secret");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user