refactor: reorganize modules and add Linux build tooling

This commit is contained in:
2026-08-09 12:41:08 +08:00
parent 86024fa81d
commit 5cc5fd92ed
1461 changed files with 4054 additions and 4724 deletions

View File

@@ -0,0 +1,22 @@
package models
import (
"time"
"git.apinb.com/bsm-sdk/core/database"
)
// 笔记附件模型
type NoteAttachment struct {
ID uint `gorm:"primaryKey" json:"id"`
NoteID uint `gorm:"index" json:"note_id"` // 笔记ID
FileName string `gorm:"size:255" json:"file_name"` // 文件名
FilePath string `gorm:"size:500" json:"file_path"` // 文件路径
FileSize int64 `json:"file_size"` // 文件大小
MimeType string `gorm:"size:100" json:"mime_type"` // 文件类型
CreatedAt time.Time `json:"created_at"` // 创建时间
}
func init() {
database.AppendMigrate(&NoteAttachment{})
}