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