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:
parent
fc066a88ff
commit
1b05d73405
@ -7,21 +7,6 @@ datasource db {
|
|||||||
url = env("DATABASE_URL")
|
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 {
|
model KVStore {
|
||||||
namespace String @db.Char(36)
|
namespace String @db.Char(36)
|
||||||
key String
|
key String
|
||||||
|
@ -3,7 +3,7 @@ var router = Router();
|
|||||||
|
|
||||||
/* GET home page. */
|
/* GET home page. */
|
||||||
router.get("/", function (req, res, next) {
|
router.get("/", function (req, res, next) {
|
||||||
res.render("index", { title: "Express" });
|
res.render("index");
|
||||||
});
|
});
|
||||||
|
|
||||||
export default router;
|
export default router;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user