Initialize AutoLibrary website with Gitea deployment

This commit is contained in:
KenanZhu committed 2026-11-04 09:59:06 +08:00
commit 18216953e7
101 files changed
+12581

No files matched your search

+18
View File
@@ -0,0 +1,18 @@
package bulletins_model
import (
"time"
)
type Bulletin struct {
ID uint `json:"id" gorm:"primaryKey"`
DateTime time.Time `json:"dateTime" gorm:"index"` // Time zone: Asia/Shanghai
Author string `json:"author" gorm:"type:varchar(20);index"`
Title string `json:"title"`
Content string `json:"content"`
// we use soft delete, to keep the uniqueness of ID
LastEditAt time.Time `json:"lastEditAt"` // Time zone: Asia/Shanghai
IsEdited bool `json:"isEdited" gorm:"default:false"`
IsDeleted bool `json:"isDeleted" gorm:"default:false"`
CreateAt time.Time `json:"createAt"` // Time zone: Asia/Shanghai
}