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

@@ -0,0 +1,9 @@
-- CreateTable
CREATE TABLE "Part" (
"id" INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
"name" TEXT NOT NULL,
"description" TEXT DEFAULT 'No description provided',
"availableStock" INTEGER NOT NULL DEFAULT 0,
"imageUrl" TEXT NOT NULL DEFAULT '/no_image.png',
"createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP
);

View File

@@ -0,0 +1,3 @@
# Please do not edit this file manually
# It should be added in your version-control system (i.e. Git)
provider = "sqlite"