mirror of
https://github.com/usememos/memos.git
synced 2025-02-20 21:30:55 +01:00
chore: tweak demo data
This commit is contained in:
parent
7564c40c8d
commit
4b415e519e
@ -1,7 +0,0 @@
|
||||
DELETE FROM memo_organizer;
|
||||
|
||||
DELETE FROM resource;
|
||||
|
||||
DELETE FROM memo;
|
||||
|
||||
DELETE FROM user;
|
@ -1,67 +0,0 @@
|
||||
INSERT INTO
|
||||
user (
|
||||
`id`,
|
||||
`username`,
|
||||
`role`,
|
||||
`email`,
|
||||
`nickname`,
|
||||
`password_hash`,
|
||||
`description`
|
||||
)
|
||||
VALUES
|
||||
(
|
||||
101,
|
||||
'memos-demo',
|
||||
'HOST',
|
||||
'demo@usememos.com',
|
||||
'Derobot',
|
||||
-- raw password: secret
|
||||
'$2a$14$ajq8Q7fbtFRQvXpdCq7Jcuy.Rx1h/L4J60Otx.gyNLbAYctGMJ9tK',
|
||||
'👋 Welcome to memos.'
|
||||
);
|
||||
|
||||
INSERT INTO
|
||||
user (
|
||||
`id`,
|
||||
`username`,
|
||||
`role`,
|
||||
`email`,
|
||||
`nickname`,
|
||||
`password_hash`,
|
||||
`description`
|
||||
)
|
||||
VALUES
|
||||
(
|
||||
102,
|
||||
'jack',
|
||||
'USER',
|
||||
'jack@usememos.com',
|
||||
'Jack',
|
||||
-- raw password: secret
|
||||
'$2a$14$ajq8Q7fbtFRQvXpdCq7Jcuy.Rx1h/L4J60Otx.gyNLbAYctGMJ9tK',
|
||||
'The REAL Jack.'
|
||||
);
|
||||
|
||||
INSERT INTO
|
||||
user (
|
||||
`id`,
|
||||
`row_status`,
|
||||
`username`,
|
||||
`role`,
|
||||
`email`,
|
||||
`nickname`,
|
||||
`password_hash`,
|
||||
`description`
|
||||
)
|
||||
VALUES
|
||||
(
|
||||
103,
|
||||
'ARCHIVED',
|
||||
'bob',
|
||||
'USER',
|
||||
'bob@usememos.com',
|
||||
'Bob',
|
||||
-- raw password: secret
|
||||
'$2a$14$ajq8Q7fbtFRQvXpdCq7Jcuy.Rx1h/L4J60Otx.gyNLbAYctGMJ9tK',
|
||||
'Sorry, I am busy right now.'
|
||||
);
|
@ -1,97 +0,0 @@
|
||||
INSERT INTO
|
||||
memo (
|
||||
`id`,
|
||||
`uid`,
|
||||
`content`,
|
||||
`creator_id`,
|
||||
`payload`
|
||||
)
|
||||
VALUES
|
||||
(
|
||||
1,
|
||||
"FqaZcg5H6EdGB9ke8kYUcy",
|
||||
"#Hello 👋 Welcome to memos.",
|
||||
101,
|
||||
'{"property": {"tags": ["Hello"]}}'
|
||||
);
|
||||
|
||||
INSERT INTO
|
||||
memo (
|
||||
`id`,
|
||||
`uid`,
|
||||
`content`,
|
||||
`creator_id`,
|
||||
`visibility`,
|
||||
`payload`
|
||||
)
|
||||
VALUES
|
||||
(
|
||||
2,
|
||||
"DCo8442yRnXYPPcKSUAaEb",
|
||||
'#TODO
|
||||
- [x] Take more photos about **🌄 sunset**;
|
||||
- [x] Clean the room;
|
||||
- [ ] Read *📖 The Little Prince*;',
|
||||
101,
|
||||
'PROTECTED',
|
||||
'{"property": {"tags": ["TODO"], "hasTaskList": true, "hasIncompleteTasks":true}}'
|
||||
);
|
||||
|
||||
INSERT INTO
|
||||
memo (
|
||||
`id`,
|
||||
`uid`,
|
||||
`content`,
|
||||
`creator_id`,
|
||||
`visibility`,
|
||||
`payload`
|
||||
)
|
||||
VALUES
|
||||
(
|
||||
3,
|
||||
"ZvH7a6VWMuX5aArtECTj4N",
|
||||
'**[Memos](https://github.com/usememos/memos)**: A lightweight, self-hosted memo hub. Open Source and Free to Use.
|
||||
**[Slash](https://github.com/yourselfhosted/slash)**: An open source, self-hosted bookmarks and link sharing platform. Save and share your links very easily.',
|
||||
101,
|
||||
'PUBLIC',
|
||||
'{"property": {"hasLink": true}}'
|
||||
);
|
||||
|
||||
INSERT INTO
|
||||
memo (
|
||||
`id`,
|
||||
`uid`,
|
||||
`content`,
|
||||
`creator_id`,
|
||||
`visibility`,
|
||||
`payload`
|
||||
)
|
||||
VALUES
|
||||
(
|
||||
4,
|
||||
"2ad3WzUF4C6pTYXdm2nQC6",
|
||||
'#TODO
|
||||
- [x] Take more photos about **🌄 sunset**;
|
||||
- [ ] Clean the classroom;
|
||||
- [ ] Watch *👦 The Boys*;',
|
||||
102,
|
||||
'PROTECTED',
|
||||
'{"property": {"tags": ["TODO"], "hasTaskList": true, "hasIncompleteTasks":true}}'
|
||||
);
|
||||
|
||||
INSERT INTO
|
||||
memo (
|
||||
`id`,
|
||||
`uid`,
|
||||
`content`,
|
||||
`creator_id`,
|
||||
`visibility`
|
||||
)
|
||||
VALUES
|
||||
(
|
||||
5,
|
||||
"Pw2awZvxxLK4sPRtHmYuS7",
|
||||
'三人行,必有我师焉!👨🏫',
|
||||
102,
|
||||
'PUBLIC'
|
||||
);
|
@ -1,9 +0,0 @@
|
||||
INSERT INTO
|
||||
memo_organizer (`memo_id`, `user_id`, `pinned`)
|
||||
VALUES
|
||||
(1, 101, 1);
|
||||
|
||||
INSERT INTO
|
||||
memo_organizer (`memo_id`, `user_id`, `pinned`)
|
||||
VALUES
|
||||
(3, 101, 1);
|
@ -1,4 +0,0 @@
|
||||
INSERT INTO
|
||||
resource (`uid`, `creator_id`, `filename`, `type`, `memo_id`, `storage_type`, `reference`)
|
||||
VALUES
|
||||
("Pw2awZvxxLK4sPRtHmYuS7", 101, 'slash-demo.png', 'image/png', 3, 'EXTERNAL', 'https://github.com/yourselfhosted/slash/blob/main/docs/assets/demo.png?raw=true');
|
10
store/db/sqlite/seed/dump.sql
Normal file
10
store/db/sqlite/seed/dump.sql
Normal file
File diff suppressed because one or more lines are too long
@ -40,8 +40,8 @@ const SignIn = () => {
|
||||
|
||||
useEffect(() => {
|
||||
if (commonContext.profile.mode === "demo") {
|
||||
setUsername("memos-demo");
|
||||
setPassword("secret");
|
||||
setUsername("yourselfhosted");
|
||||
setPassword("yourselfhosted");
|
||||
}
|
||||
}, [commonContext.profile.mode]);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user