Add initial database schema and journal entries for token management

- Created a new snapshot JSON file (0003_snapshot.json) defining the schema for tables including account_tokens, accounts, checkin_logs, events, model_availability, proxy_logs, route_channels, settings, sites, token_model_availability, and token_routes.
- Added columns, indexes, and foreign key constraints for each table to ensure data integrity and relationships.
- Introduced a journal JSON file (_journal.json) to track schema versions and changes, including entries for version 6 with relevant tags and timestamps.
This commit is contained in:
cita
2026-02-28 22:20:28 +08:00
parent 2eeebbd686
commit 9405d468d9
8 changed files with 2177 additions and 1 deletions
+34
View File
@@ -0,0 +1,34 @@
{
"version": "7",
"dialect": "sqlite",
"entries": [
{
"idx": 0,
"version": "6",
"when": 1771906082166,
"tag": "0000_sloppy_blackheart",
"breakpoints": true
},
{
"idx": 1,
"version": "6",
"when": 1771966800000,
"tag": "0001_token_management",
"breakpoints": true
},
{
"idx": 2,
"version": "6",
"when": 1771969800000,
"tag": "0002_token_model_availability",
"breakpoints": true
},
{
"idx": 3,
"version": "6",
"when": 1772079351462,
"tag": "0003_great_blizzard",
"breakpoints": true
}
]
}