mirror of
https://github.com/usememos/memos.git
synced 2024-11-17 04:07:30 +08:00
bdc9632b5b
* chore: rename user role to `host` * chore: related frontend changes * chore: fix migration file * chore: use tricky sql
39 lines
606 B
SQL
39 lines
606 B
SQL
INSERT INTO
|
|
user (
|
|
`id`,
|
|
`email`,
|
|
`role`,
|
|
`name`,
|
|
`open_id`,
|
|
`password_hash`
|
|
)
|
|
VALUES
|
|
(
|
|
101,
|
|
'demo@usememos.com',
|
|
'HOST',
|
|
'Demo Host',
|
|
'demo_open_id',
|
|
-- raw password: secret
|
|
'$2a$14$ajq8Q7fbtFRQvXpdCq7Jcuy.Rx1h/L4J60Otx.gyNLbAYctGMJ9tK'
|
|
);
|
|
|
|
INSERT INTO
|
|
user (
|
|
`id`,
|
|
`email`,
|
|
`role`,
|
|
`name`,
|
|
`open_id`,
|
|
`password_hash`
|
|
)
|
|
VALUES
|
|
(
|
|
102,
|
|
'jack@usememos.com',
|
|
'USER',
|
|
'Jack',
|
|
'jack_open_id',
|
|
-- raw password: secret
|
|
'$2a$14$ajq8Q7fbtFRQvXpdCq7Jcuy.Rx1h/L4J60Otx.gyNLbAYctGMJ9tK'
|
|
);
|