Merge branch 'dev' into 'main'

Updated schema

See merge request illegitimate/illegitimate-bot!294
This commit is contained in:
2024-10-02 21:58:44 +00:00

View File

@@ -1,32 +1,45 @@
import { bigint, pgTable, serial, text } from "drizzle-orm/pg-core"
import { bigint, pgTable, serial, text, timestamp } from "drizzle-orm/pg-core"
const createdAt = timestamp("createdAt").notNull().defaultNow()
const updatedAt = timestamp("updatedAt").notNull().defaultNow().$onUpdate(() => new Date())
export const verifies = pgTable("verifies", {
id: serial("id").primaryKey(),
userID: text("userID").notNull(),
uuid: text("uuid").notNull()
uuid: text("uuid").notNull(),
createdAt,
updatedAt
})
export const guildApps = pgTable("guildApps", {
id: serial("id").primaryKey(),
userID: text("userID").notNull(),
uuid: text("uuid").notNull()
uuid: text("uuid").notNull(),
createdAt,
updatedAt
})
export const staffApps = pgTable("staffApps", {
id: serial("id").primaryKey(),
userID: text("userID").notNull(),
uuid: text("uuid").notNull()
uuid: text("uuid").notNull(),
createdAt,
updatedAt
})
export const waitingLists = pgTable("waitingLists", {
id: serial("id").primaryKey(),
userID: text("userID").notNull(),
uuid: text("uuid").notNull(),
timestamp: bigint("timestamp", { mode: "number" }).notNull()
timestamp: bigint("timestamp", { mode: "number" }).notNull(),
createdAt,
updatedAt
})
export const settings = pgTable("settings", {
id: serial("id").primaryKey(),
name: text("name").notNull(),
value: text("value").notNull()
value: text("value").notNull(),
createdAt,
updatedAt
})