28 lines
816 B
Text
28 lines
816 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
|
|
createdAt DateTime @default(now())
|
|
createdBy String
|
|
status String // probably enum
|
|
ownerSaleor String // maybe we should have table with insalled saleors
|
|
}
|