
Add docker-compose with Postgres Install Prisma and generate empty schema Install Prisma client Add app config model and migration Add repository for Algolia Configuration Migrate metadata to postgres Replace webhooks metadata with PRisma Add worker and skeleton code Implement worker job and removed from the frontend Attempt to display jobs list Worker utils Run worker in the same thread on dev Run worker in the same thread on dev Build scripts fix dev mode Dockerfiles prod dockerfiles docker wip docker wip wip working docker wip working docker wip - working without prisma migrate
19 lines
541 B
Text
19 lines
541 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
|
|
}
|