Merge branch 'matcherConfiguration' into 'main'
add matcher domain, set domain as string instead of enum in db See merge request v3/service/configuration!23
This commit is contained in:
commit
d9cf800cf8
|
@ -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