updated plan
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
|
||||
### 1. Database Setup (`server_node/database.rs`)
|
||||
- [ ] **Dependencies:** Add `sqlx` with the `sqlite` and `runtime-tokio` features.
|
||||
- [ ] **AI Context Trap (SQLite Locking):** SQLite will throw `database is locked` errors under heavy async load. Ensure the `sqlx::sqlite::SqliteConnectOptions` explicitly sets `PRAGMA journal_mode=WAL` to allow concurrent UDP/TCP access.
|
||||
- [ ] **Schema Migrations:** Create `users` (ID, Name, Hash, Role) and `channels` (ID, Name, ParentID, RequiredRole, Bitrate). Run migrations on startup via `sqlx::migrate!()`.
|
||||
- [ ] **Permissions Check:** During the TCP `ChannelJoin` event, query the DB to ensure the user's Role $\ge$ the `RequiredRole` of the channel.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user