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:
Sylvain Briat 2023-05-24 12:41:26 +00:00
commit d9cf800cf8
3 changed files with 3 additions and 9 deletions

View File

@ -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,

View File

@ -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
}

View File

@ -1,3 +1,4 @@
export enum Domain {
USER = 'USER',
MATCHER = 'MATCHER',
}