Updated schema
This commit is contained in:
@@ -9,12 +9,10 @@ export const verifies = pgTable("verifies", {
|
|||||||
uuid: varchar("uuid", { length: 32 }).notNull(),
|
uuid: varchar("uuid", { length: 32 }).notNull(),
|
||||||
createdAt,
|
createdAt,
|
||||||
updatedAt
|
updatedAt
|
||||||
}, table => {
|
}, t => [
|
||||||
return {
|
index("verifies_userid_index").on(t.userID),
|
||||||
useridIndex: index("verifies_userid_index").on(table.userID),
|
index("verifies_uuid_index").on(t.uuid)
|
||||||
uuidIndex: index("verifies_uuid_index").on(table.uuid)
|
])
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
export const guildApps = pgTable("guildApps", {
|
export const guildApps = pgTable("guildApps", {
|
||||||
id: serial("id").primaryKey(),
|
id: serial("id").primaryKey(),
|
||||||
@@ -22,12 +20,10 @@ export const guildApps = pgTable("guildApps", {
|
|||||||
uuid: varchar("uuid", { length: 32 }).notNull(),
|
uuid: varchar("uuid", { length: 32 }).notNull(),
|
||||||
createdAt,
|
createdAt,
|
||||||
updatedAt
|
updatedAt
|
||||||
}, table => {
|
}, t => [
|
||||||
return {
|
index("guildapps_userid_index").on(t.userID),
|
||||||
useridIndex: index("guildapps_userid_index").on(table.userID),
|
index("guildapps_uuid_index").on(t.uuid)
|
||||||
uuidIndex: index("guildapps_uuid_index").on(table.uuid)
|
])
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
export const staffApps = pgTable("staffApps", {
|
export const staffApps = pgTable("staffApps", {
|
||||||
id: serial("id").primaryKey(),
|
id: serial("id").primaryKey(),
|
||||||
@@ -35,12 +31,10 @@ export const staffApps = pgTable("staffApps", {
|
|||||||
uuid: varchar("uuid", { length: 32 }).notNull(),
|
uuid: varchar("uuid", { length: 32 }).notNull(),
|
||||||
createdAt,
|
createdAt,
|
||||||
updatedAt
|
updatedAt
|
||||||
}, table => {
|
}, t => [
|
||||||
return {
|
index("staffapps_userid_index").on(t.userID),
|
||||||
useridIndex: index("staffapps_userid_index").on(table.userID),
|
index("staffapps_uuid_index").on(t.uuid)
|
||||||
uuidIndex: index("staffapps_uuid_index").on(table.uuid)
|
])
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
export const waitingLists = pgTable("waitingLists", {
|
export const waitingLists = pgTable("waitingLists", {
|
||||||
id: serial("id").primaryKey(),
|
id: serial("id").primaryKey(),
|
||||||
@@ -49,12 +43,10 @@ export const waitingLists = pgTable("waitingLists", {
|
|||||||
timestamp: bigint("timestamp", { mode: "number" }).notNull(),
|
timestamp: bigint("timestamp", { mode: "number" }).notNull(),
|
||||||
createdAt,
|
createdAt,
|
||||||
updatedAt
|
updatedAt
|
||||||
}, table => {
|
}, t => [
|
||||||
return {
|
index("wl_userid_index").on(t.userID),
|
||||||
useridIndex: index("wl_userid_index").on(table.userID),
|
index("wl_uuid_index").on(t.uuid)
|
||||||
uuidIndex: index("wl_uuid_index").on(table.uuid)
|
])
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
export const settings = pgTable("settings", {
|
export const settings = pgTable("settings", {
|
||||||
id: serial("id").primaryKey(),
|
id: serial("id").primaryKey(),
|
||||||
@@ -62,11 +54,9 @@ export const settings = pgTable("settings", {
|
|||||||
value: varchar("value", { length: 256 }).notNull(),
|
value: varchar("value", { length: 256 }).notNull(),
|
||||||
createdAt,
|
createdAt,
|
||||||
updatedAt
|
updatedAt
|
||||||
}, table => {
|
}, t => [
|
||||||
return {
|
index("settings_name_index").on(t.name)
|
||||||
nameIndex: index("settings_name_index").on(table.name)
|
])
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
export type SelectVerify = typeof verifies.$inferSelect
|
export type SelectVerify = typeof verifies.$inferSelect
|
||||||
export type InsertVerify = typeof verifies.$inferInsert
|
export type InsertVerify = typeof verifies.$inferInsert
|
||||||
|
|||||||
Reference in New Issue
Block a user