mirror of
https://github.com/eliasrenman/gardentron.git
synced 2026-03-17 04:56:06 +01:00
feat: added moisture checker
This commit is contained in:
BIN
server/prisma/db.sqlite
Normal file
BIN
server/prisma/db.sqlite
Normal file
Binary file not shown.
BIN
server/prisma/db.sqlite-journal
Normal file
BIN
server/prisma/db.sqlite-journal
Normal file
Binary file not shown.
@@ -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
|
||||
);
|
||||
3
server/prisma/migrations/migration_lock.toml
Normal file
3
server/prisma/migrations/migration_lock.toml
Normal 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"
|
||||
@@ -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())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user