add matcher domain, set domain as string instead of enum in db
This commit is contained in:
parent
169941348c
commit
6f73940273
|
@ -1,10 +1,7 @@
|
|||
-- CreateEnum
|
||||
CREATE TYPE "Domain" AS ENUM ('USER');
|
||||
|
||||
-- CreateTable
|
||||
CREATE TABLE "configuration" (
|
||||
"uuid" UUID NOT NULL,
|
||||
"domain" "Domain" NOT NULL,
|
||||
"domain" TEXT NOT NULL,
|
||||
"key" TEXT NOT NULL,
|
||||
"value" TEXT NOT NULL,
|
||||
"createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
|
@ -12,7 +12,7 @@ datasource db {
|
|||
|
||||
model Configuration {
|
||||
uuid String @id @default(uuid()) @db.Uuid
|
||||
domain Domain
|
||||
domain String
|
||||
key String
|
||||
value String
|
||||
createdAt DateTime @default(now())
|
||||
|
@ -21,7 +21,3 @@ model Configuration {
|
|||
@@unique([domain, key])
|
||||
@@map("configuration")
|
||||
}
|
||||
|
||||
enum Domain {
|
||||
USER
|
||||
}
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
export enum Domain {
|
||||
USER = 'USER',
|
||||
MATCHER = 'MATCHER',
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue