saleor-apps-redis_apl/apps/search/prisma/schema.prisma
2023-06-07 13:51:26 +02:00

28 lines
844 B
Text

// This is your Prisma schema file,
// learn more about it in the docs: https://pris.ly/d/prisma-schema
generator client {
provider = "prisma-client-js"
}
datasource db {
provider = "postgresql"
url = env("DATABASE_URL")
}
model AlgoliaConfiguration {
id Int @id @default(autoincrement())
appId String
indexNamePrefix String?
secretKey String // TODO encryption
saleorApiUrl String @unique // Reference - maybe it can be unique id? This will share config where 2 apps installed
}
model IndexJob {
id Int @id @default(autoincrement())
jobId Int @unique // todo make it ID instead?
createdAt DateTime @default(now())
createdBy String
status String // probably enum
ownerSaleor String // maybe we should have table with insalled saleors
}