mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +00:00
refactor: add organizations system
This commit is contained in:
@@ -24,11 +24,16 @@ export const user = pgTable("user", {
|
||||
isRegistered: boolean("isRegistered").notNull().default(false),
|
||||
expirationDate: timestamp("expirationDate", {
|
||||
precision: 3,
|
||||
mode: "string",
|
||||
}).notNull(),
|
||||
createdAt: text("createdAt")
|
||||
mode: "date",
|
||||
})
|
||||
.notNull()
|
||||
.$defaultFn(() => new Date().toISOString()),
|
||||
.$defaultFn(() => new Date()),
|
||||
createdAt: timestamp("createdAt", {
|
||||
precision: 3,
|
||||
mode: "date",
|
||||
})
|
||||
.notNull()
|
||||
.$defaultFn(() => new Date()),
|
||||
canCreateProjects: boolean("canCreateProjects").notNull().default(false),
|
||||
canAccessToSSHKeys: boolean("canAccessToSSHKeys").notNull().default(false),
|
||||
canCreateServices: boolean("canCreateServices").notNull().default(false),
|
||||
|
||||
Reference in New Issue
Block a user