memos/store/db/seed/10001__user.sql

67 lines
1 KiB
MySQL
Raw Normal View History

INSERT INTO
2022-03-28 23:38:12 +08:00
user (
`id`,
`username`,
2022-05-19 22:29:27 +08:00
`role`,
`email`,
`nickname`,
2022-03-28 23:38:12 +08:00
`open_id`,
`password_hash`
)
VALUES
(
101,
'demohero',
'HOST',
'demo@usememos.com',
'Demo Hero',
hex(randomblob(16)),
2022-05-19 18:32:04 +08:00
-- raw password: secret
2022-05-03 11:49:10 +08:00
'$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',
hex(randomblob(16)),
-- raw password: secret
'$2a$14$ajq8Q7fbtFRQvXpdCq7Jcuy.Rx1h/L4J60Otx.gyNLbAYctGMJ9tK'
);
2022-07-26 21:41:20 +08:00
INSERT INTO
2022-07-26 21:41:20 +08:00
user (
`id`,
`row_status`,
`username`,
2022-07-26 21:41:20 +08:00
`role`,
`email`,
`nickname`,
2022-07-26 21:41:20 +08:00
`open_id`,
`password_hash`
)
VALUES
(
103,
'ARCHIVED',
'bob',
2022-07-26 21:41:20 +08:00
'USER',
'bob@usememos.com',
2022-07-26 21:41:20 +08:00
'Bob',
hex(randomblob(16)),
2022-07-26 21:41:20 +08:00
-- raw password: secret
'$2a$14$ajq8Q7fbtFRQvXpdCq7Jcuy.Rx1h/L4J60Otx.gyNLbAYctGMJ9tK'
);