mirror of
https://github.com/usememos/memos.git
synced 2024-12-21 10:11:42 +03:00
2042737004
* feat: add username field * chore: update
67 lines
1.0 KiB
SQL
67 lines
1.0 KiB
SQL
INSERT INTO
|
|
user (
|
|
`id`,
|
|
`username`,
|
|
`role`,
|
|
`email`,
|
|
`nickname`,
|
|
`open_id`,
|
|
`password_hash`
|
|
)
|
|
VALUES
|
|
(
|
|
101,
|
|
'demohero',
|
|
'HOST',
|
|
'demo@usememos.com',
|
|
'Demo Hero',
|
|
'demo_open_id',
|
|
-- raw password: secret
|
|
'$2a$14$ajq8Q7fbtFRQvXpdCq7Jcuy.Rx1h/L4J60Otx.gyNLbAYctGMJ9tK'
|
|
);
|
|
|
|
INSERT INTO
|
|
user (
|
|
`id`,
|
|
`username`,
|
|
`role`,
|
|
`email`,
|
|
`nickname`,
|
|
`open_id`,
|
|
`password_hash`
|
|
)
|
|
VALUES
|
|
(
|
|
102,
|
|
'jack',
|
|
'USER',
|
|
'jack@usememos.com',
|
|
'Jack',
|
|
'jack_open_id',
|
|
-- raw password: secret
|
|
'$2a$14$ajq8Q7fbtFRQvXpdCq7Jcuy.Rx1h/L4J60Otx.gyNLbAYctGMJ9tK'
|
|
);
|
|
|
|
INSERT INTO
|
|
user (
|
|
`id`,
|
|
`row_status`,
|
|
`username`,
|
|
`role`,
|
|
`email`,
|
|
`nickname`,
|
|
`open_id`,
|
|
`password_hash`
|
|
)
|
|
VALUES
|
|
(
|
|
103,
|
|
'ARCHIVED',
|
|
'bob',
|
|
'USER',
|
|
'bob@usememos.com',
|
|
'Bob',
|
|
'bob_open_id',
|
|
-- raw password: secret
|
|
'$2a$14$ajq8Q7fbtFRQvXpdCq7Jcuy.Rx1h/L4J60Otx.gyNLbAYctGMJ9tK'
|
|
); |