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

67 lines
1.0 KiB
MySQL
Raw Normal View History

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