Skip to content

Commit

Permalink
1
Browse files Browse the repository at this point in the history
  • Loading branch information
SunWuyuan committed Aug 26, 2024
1 parent 625cdb3 commit 8b704f4
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
15 changes: 15 additions & 0 deletions prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -254,3 +254,18 @@ model ow_users {
@@id([id, username])
}

/// This model or at least one of its fields has comments in the database, and requires an additional setup for migrations: Read more: https://pris.ly/d/database-comments
model ow_project {
id Int @id @default(autoincrement()) @db.UnsignedInt
authorid Int @db.UnsignedInt
projectid Int @db.UnsignedInt
branche String? @default("main") @db.VarChar(45)
type String? @default("commit") @db.VarChar(32)
view_count Int? @default(0) @db.UnsignedInt
time DateTime @default(now()) @db.Timestamp(0)
title String? @default("ZeroCat新项目") @db.VarChar(50)
commit String? @default("commit") @db.VarChar(1000)
source String? @db.MediumText
environment Json?
}
2 changes: 1 addition & 1 deletion server/router_my.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ router.all("*", function (req, res, next) {
//限定访问该模块的权限:必须已登录
if (!res.locals.login) {
//未登录时,跳转到登录界面
res.redirect("/user/login");
res.redirect("/account/login");
return;
}

Expand Down

0 comments on commit 8b704f4

Please sign in to comment.