refactor: account model overhaul

This commit is contained in:
2026-01-01 18:29:52 +00:00
parent ad7d7c6a1b
commit 88492dd876
49 changed files with 1559 additions and 573 deletions

View File

@@ -3,11 +3,12 @@ import { atom } from "jotai"
export const Account = type({
id: "string",
orgId: "string",
userId: "string",
role: "'admin'|'member'",
status: "'invited'|'active'|'suspended'",
createdAt: "string.date.iso.parse",
updatedAt: "string.date.iso.parse",
storageUsageBytes: "number",
storageQuotaBytes: "number",
})
export type Account = typeof Account.infer