feat: added moisture checker

This commit is contained in:
Elias Renman
2023-05-21 16:33:44 +02:00
parent bb9407c2fa
commit 028e825541
20 changed files with 454 additions and 756 deletions

BIN
server/prisma/db.sqlite Normal file

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,7 @@
-- CreateTable
CREATE TABLE "MoistureValue" (
"id" INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
"name" TEXT NOT NULL,
"value" DECIMAL NOT NULL,
"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"

View File

@@ -9,3 +9,10 @@ datasource db {
provider = "sqlite"
url = env("DATABASE_URL")
}
model MoistureValue {
id Int @id @default(autoincrement())
name String
value Decimal
createdAt DateTime @default(now())
}