1
0
mirror of https://github.com/ZeroCatDev/ClassworksKV.git synced 2025-07-01 20:09:23 +00:00

Remove unused homework and config models from Prisma schema; update home page rendering in index.js to simplify response.

This commit is contained in:
SunWuyuan 2025-05-11 07:58:29 +08:00
parent fc066a88ff
commit 1b05d73405
No known key found for this signature in database
GPG Key ID: A6A54CF66F56BB64
2 changed files with 1 additions and 16 deletions

View File

@ -7,21 +7,6 @@ datasource db {
url = env("DATABASE_URL")
}
model homework {
class String @db.VarChar(45)
date String @db.VarChar(10)
data Json
createdAt DateTime @default(now())
updatedAt DateTime @default(now())
@@id([date, class])
}
model config {
class String @id @db.VarChar(45)
value Json?
}
model KVStore {
namespace String @db.Char(36)
key String

View File

@ -3,7 +3,7 @@ var router = Router();
/* GET home page. */
router.get("/", function (req, res, next) {
res.render("index", { title: "Express" });
res.render("index");
});
export default router;