ba048a15-58c0-44e5-8a0c-3cb9d71bd91d

This commit is contained in:
Z User committed 2026-10-30 00:09:50 +00:00
1 parent 72ec15c2ab
commit d492182b4e
7 files changed
+275 -34

No files matched your search

+7 -1
View File
@@ -19,7 +19,12 @@ model User {
id String @id @default(cuid())
email String @unique
name String
role String @default("owner") // owner|admin|sales|pm|developer|finance|readonly|client|member
role String @default("owner") // owner|admin|sales|pm|developer|finance|readonly|client|member|reseller
// --- Account → Company link ---
// For reseller/client accounts: the Company this user manages. Null for
// the platform owner + internal staff. Set at registration.
companyId String?
company Company? @relation(fields: [companyId], references: [id])
// --- Authentication ---
// scrypt-based password hash (format: "salt:hash", both hex). Null = seeded
// user that hasn't claimed their account via registration yet.
@@ -143,6 +148,7 @@ model Company {
agencyApplication AgencyApplication?
instances Instance[]
repoAssignments RepoAssignment[]
users User[]
}
model Person {