mirror of
https://github.com/fosrl/pangolin.git
synced 2026-11-17 02:40:25 -06:00
🏷️ update types
This commit is contained in:
@@ -1224,7 +1224,10 @@ export const idpOidcConfig = pgTable("idpOidcConfig", {
|
||||
idpId: integer("idpId")
|
||||
.notNull()
|
||||
.references(() => idp.idpId, { onDelete: "cascade" }),
|
||||
variant: varchar("variant").notNull().default("oidc"),
|
||||
variant: varchar("variant")
|
||||
.notNull()
|
||||
.$type<"oidc" | "google" | "azure">()
|
||||
.default("oidc"),
|
||||
clientId: varchar("clientId").notNull(),
|
||||
clientSecret: varchar("clientSecret").notNull(),
|
||||
authUrl: varchar("authUrl").notNull(),
|
||||
|
||||
@@ -1533,7 +1533,10 @@ export const idpOidcConfig = sqliteTable("idpOidcConfig", {
|
||||
idpOauthConfigId: integer("idpOauthConfigId").primaryKey({
|
||||
autoIncrement: true
|
||||
}),
|
||||
variant: text("variant").notNull().default("oidc"),
|
||||
variant: text("variant")
|
||||
.notNull()
|
||||
.$type<"oidc" | "google" | "azure">()
|
||||
.default("oidc"),
|
||||
idpId: integer("idpId")
|
||||
.notNull()
|
||||
.references(() => idp.idpId, { onDelete: "cascade" }),
|
||||
|
||||
Reference in New Issue
Block a user