1
0

Parts schema and scaffolld, with file uploading for the image (through Filestack)

This commit is contained in:
Ahmed Al-Taiar
2023-10-27 13:25:08 -04:00
parent 2f753308b1
commit 1eaf76fce2
31 changed files with 1492 additions and 13 deletions

View File

@@ -8,11 +8,11 @@ generator client {
binaryTargets = "native"
}
// Define your own datamodels here and run `yarn redwood prisma migrate dev`
// to create migrations for them and apply to your dev DB.
// TODO: Please remove the following example:
model UserExample {
id Int @id @default(autoincrement())
email String @unique
name String?
model Part {
id Int @id @default(autoincrement())
name String
description String? @default("No description provided")
availableStock Int @default(0)
imageUrl String @default("/no_image.png")
createdAt DateTime @default(now())
}