mirror of
https://github.com/get-drexa/drive.git
synced 2026-02-02 19:01:16 +00:00
refactor: account model overhaul
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user