Skip to content

Commit d1b2c03

Browse files
committed
chore: add demo user access token for testing purposes
1 parent dc398cf commit d1b2c03

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

store/seed/sqlite/01__dump.sql

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
-- Demo User
22
INSERT INTO user (id,username,role,nickname,password_hash) VALUES(1,'demo','HOST','Demo User','$2a$10$c.slEVgf5b/3BnAWlLb/vOu7VVSOKJ4ljwMe9xzlx9IhKnvAsJYM6');
33

4+
-- Demo User Access Token (never expires, for demo/testing purposes)
5+
INSERT INTO user_setting (user_id, key, value) VALUES(1, 'ACCESS_TOKENS', '{"accessTokens":[{"accessToken":"eyJhbGciOiJIUzI1NiIsImtpZCI6InYxIiwidHlwIjoiSldUIn0.eyJuYW1lIjoiZGVtbyIsImlzcyI6Im1lbW9zIiwic3ViIjoiMSIsImF1ZCI6WyJ1c2VyLmFjY2Vzcy10b2tlbiJdLCJleHAiOjIwNzgxODEwMDgsImlhdCI6MTc2MjgyMTAwOH0.lVo4Ij_R9wrMrpmSMRUtZBWjzRZqOisHIaWtzVNBl6s","description":"Demo Access Token"}]}');
6+
47
-- Welcome Memo (Pinned)
58
INSERT INTO memo (id,uid,creator_id,content,visibility,pinned,payload) VALUES(1,'welcome2memos001',1,replace('# Welcome to Memos!\n\nA privacy-first, lightweight note-taking service. Easily capture and share your great thoughts.\n\n## Key Features\n\n- **Privacy First**: Your data stays with you\n- **Markdown Support**: Full CommonMark + GFM syntax\n- **Quick Capture**: Jot down thoughts instantly\n- **Organize with Tags**: Use #tags to categorize\n- **Open Source**: Free and open source software\n\n---\n\nStart exploring the demo memos below to see what you can do! #welcome #getting-started','\n',char(10)),'PUBLIC',1,'{"tags":["welcome","getting-started"],"property":{"hasLink":false}}');
69

0 commit comments

Comments
 (0)