feat: Add log query functionality and enhance logging system

This commit is contained in:
2025-01-01 10:55:34 +08:00
parent cef41c070d
commit b534cadaf5
3 changed files with 204 additions and 36 deletions

3
db.ts
View File

@@ -136,7 +136,8 @@ export enum UserPermission {
DeleteGallery = 1 << 2,
ManageTasks = 1 << 3,
ShareGallery = 1 << 4,
All = ~(~0 << 5),
QueryLog = 1 << 5,
All = ~(~0 << 6),
}
export type User = {
id: number | bigint;