mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +00:00
chore: comment out database schema definitions in auth-schema
This commit is contained in:
@@ -1,99 +1,97 @@
|
|||||||
import { boolean, pgTable, text, timestamp } from "drizzle-orm/pg-core";
|
// export const users_temp = pgTable("users_temp", {
|
||||||
|
// id: text("id").primaryKey(),
|
||||||
|
// name: text("name").notNull(),
|
||||||
|
// email: text("email").notNull().unique(),
|
||||||
|
// emailVerified: boolean("email_verified").notNull(),
|
||||||
|
// image: text("image"),
|
||||||
|
// createdAt: timestamp("created_at").notNull(),
|
||||||
|
// updatedAt: timestamp("updated_at").notNull(),
|
||||||
|
// twoFactorEnabled: boolean("two_factor_enabled"),
|
||||||
|
// role: text("role"),
|
||||||
|
// ownerId: text("owner_id"),
|
||||||
|
// });
|
||||||
|
|
||||||
export const users_temp = pgTable("users_temp", {
|
// export const session = pgTable("session", {
|
||||||
id: text("id").primaryKey(),
|
// id: text("id").primaryKey(),
|
||||||
name: text("name").notNull(),
|
// expiresAt: timestamp("expires_at").notNull(),
|
||||||
email: text("email").notNull().unique(),
|
// token: text("token").notNull().unique(),
|
||||||
emailVerified: boolean("email_verified").notNull(),
|
// createdAt: timestamp("created_at").notNull(),
|
||||||
image: text("image"),
|
// updatedAt: timestamp("updated_at").notNull(),
|
||||||
createdAt: timestamp("created_at").notNull(),
|
// ipAddress: text("ip_address"),
|
||||||
updatedAt: timestamp("updated_at").notNull(),
|
// userAgent: text("user_agent"),
|
||||||
twoFactorEnabled: boolean("two_factor_enabled"),
|
// userId: text("user_id")
|
||||||
role: text("role"),
|
// .notNull()
|
||||||
ownerId: text("owner_id"),
|
// .references(() => users_temp.id, { onDelete: "cascade" }),
|
||||||
});
|
// activeOrganizationId: text("active_organization_id"),
|
||||||
|
// });
|
||||||
|
|
||||||
export const session = pgTable("session", {
|
// export const account = pgTable("account", {
|
||||||
id: text("id").primaryKey(),
|
// id: text("id").primaryKey(),
|
||||||
expiresAt: timestamp("expires_at").notNull(),
|
// accountId: text("account_id").notNull(),
|
||||||
token: text("token").notNull().unique(),
|
// providerId: text("provider_id").notNull(),
|
||||||
createdAt: timestamp("created_at").notNull(),
|
// userId: text("user_id")
|
||||||
updatedAt: timestamp("updated_at").notNull(),
|
// .notNull()
|
||||||
ipAddress: text("ip_address"),
|
// .references(() => users_temp.id, { onDelete: "cascade" }),
|
||||||
userAgent: text("user_agent"),
|
// accessToken: text("access_token"),
|
||||||
userId: text("user_id")
|
// refreshToken: text("refresh_token"),
|
||||||
.notNull()
|
// idToken: text("id_token"),
|
||||||
.references(() => users_temp.id, { onDelete: "cascade" }),
|
// accessTokenExpiresAt: timestamp("access_token_expires_at"),
|
||||||
activeOrganizationId: text("active_organization_id"),
|
// refreshTokenExpiresAt: timestamp("refresh_token_expires_at"),
|
||||||
});
|
// scope: text("scope"),
|
||||||
|
// password: text("password"),
|
||||||
|
// createdAt: timestamp("created_at").notNull(),
|
||||||
|
// updatedAt: timestamp("updated_at").notNull(),
|
||||||
|
// });
|
||||||
|
|
||||||
export const account = pgTable("account", {
|
// export const verification = pgTable("verification", {
|
||||||
id: text("id").primaryKey(),
|
// id: text("id").primaryKey(),
|
||||||
accountId: text("account_id").notNull(),
|
// identifier: text("identifier").notNull(),
|
||||||
providerId: text("provider_id").notNull(),
|
// value: text("value").notNull(),
|
||||||
userId: text("user_id")
|
// expiresAt: timestamp("expires_at").notNull(),
|
||||||
.notNull()
|
// createdAt: timestamp("created_at"),
|
||||||
.references(() => users_temp.id, { onDelete: "cascade" }),
|
// updatedAt: timestamp("updated_at"),
|
||||||
accessToken: text("access_token"),
|
// });
|
||||||
refreshToken: text("refresh_token"),
|
|
||||||
idToken: text("id_token"),
|
|
||||||
accessTokenExpiresAt: timestamp("access_token_expires_at"),
|
|
||||||
refreshTokenExpiresAt: timestamp("refresh_token_expires_at"),
|
|
||||||
scope: text("scope"),
|
|
||||||
password: text("password"),
|
|
||||||
createdAt: timestamp("created_at").notNull(),
|
|
||||||
updatedAt: timestamp("updated_at").notNull(),
|
|
||||||
});
|
|
||||||
|
|
||||||
export const verification = pgTable("verification", {
|
// export const twoFactor = pgTable("two_factor", {
|
||||||
id: text("id").primaryKey(),
|
// id: text("id").primaryKey(),
|
||||||
identifier: text("identifier").notNull(),
|
// secret: text("secret").notNull(),
|
||||||
value: text("value").notNull(),
|
// backupCodes: text("backup_codes").notNull(),
|
||||||
expiresAt: timestamp("expires_at").notNull(),
|
// userId: text("user_id")
|
||||||
createdAt: timestamp("created_at"),
|
// .notNull()
|
||||||
updatedAt: timestamp("updated_at"),
|
// .references(() => user.id, { onDelete: "cascade" }),
|
||||||
});
|
// });
|
||||||
|
|
||||||
export const twoFactor = pgTable("two_factor", {
|
// export const organization = pgTable("organization", {
|
||||||
id: text("id").primaryKey(),
|
// id: text("id").primaryKey(),
|
||||||
secret: text("secret").notNull(),
|
// name: text("name").notNull(),
|
||||||
backupCodes: text("backup_codes").notNull(),
|
// slug: text("slug").unique(),
|
||||||
userId: text("user_id")
|
// logo: text("logo"),
|
||||||
.notNull()
|
// createdAt: timestamp("created_at").notNull(),
|
||||||
.references(() => user.id, { onDelete: "cascade" }),
|
// metadata: text("metadata"),
|
||||||
});
|
// });
|
||||||
|
|
||||||
export const organization = pgTable("organization", {
|
// export const member = pgTable("member", {
|
||||||
id: text("id").primaryKey(),
|
// id: text("id").primaryKey(),
|
||||||
name: text("name").notNull(),
|
// organizationId: text("organization_id")
|
||||||
slug: text("slug").unique(),
|
// .notNull()
|
||||||
logo: text("logo"),
|
// .references(() => organization.id, { onDelete: "cascade" }),
|
||||||
createdAt: timestamp("created_at").notNull(),
|
// userId: text("user_id")
|
||||||
metadata: text("metadata"),
|
// .notNull()
|
||||||
});
|
// .references(() => user.id, { onDelete: "cascade" }),
|
||||||
|
// role: text("role").notNull(),
|
||||||
|
// createdAt: timestamp("created_at").notNull(),
|
||||||
|
// });
|
||||||
|
|
||||||
export const member = pgTable("member", {
|
// export const invitation = pgTable("invitation", {
|
||||||
id: text("id").primaryKey(),
|
// id: text("id").primaryKey(),
|
||||||
organizationId: text("organization_id")
|
// organizationId: text("organization_id")
|
||||||
.notNull()
|
// .notNull()
|
||||||
.references(() => organization.id, { onDelete: "cascade" }),
|
// .references(() => organization.id, { onDelete: "cascade" }),
|
||||||
userId: text("user_id")
|
// email: text("email").notNull(),
|
||||||
.notNull()
|
// role: text("role"),
|
||||||
.references(() => user.id, { onDelete: "cascade" }),
|
// status: text("status").notNull(),
|
||||||
role: text("role").notNull(),
|
// expiresAt: timestamp("expires_at").notNull(),
|
||||||
createdAt: timestamp("created_at").notNull(),
|
// inviterId: text("inviter_id")
|
||||||
});
|
// .notNull()
|
||||||
|
// .references(() => user.id, { onDelete: "cascade" }),
|
||||||
export const invitation = pgTable("invitation", {
|
// });
|
||||||
id: text("id").primaryKey(),
|
|
||||||
organizationId: text("organization_id")
|
|
||||||
.notNull()
|
|
||||||
.references(() => organization.id, { onDelete: "cascade" }),
|
|
||||||
email: text("email").notNull(),
|
|
||||||
role: text("role"),
|
|
||||||
status: text("status").notNull(),
|
|
||||||
expiresAt: timestamp("expires_at").notNull(),
|
|
||||||
inviterId: text("inviter_id")
|
|
||||||
.notNull()
|
|
||||||
.references(() => user.id, { onDelete: "cascade" }),
|
|
||||||
});
|
|
||||||
|
|||||||
Reference in New Issue
Block a user