migrate from github

This commit is contained in:
2026-07-15 22:42:31 +08:00
commit 3ad559f05e
262 changed files with 21637 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
package model
import "time"
type DocumentVersion struct {
ID int64 `gorm:"primaryKey;autoIncrement" json:"id"`
DocumentID int64 `gorm:"not null;index" json:"document_id"`
Version int `gorm:"not null" json:"version"`
Title string `gorm:"size:200;not null" json:"title"`
Content string `gorm:"type:text" json:"content"`
UserID int64 `gorm:"not null;index" json:"user_id"`
ChangeSummary string `gorm:"type:text" json:"change_summary"`
CreatedAt time.Time `json:"created_at"`
}
func (DocumentVersion) TableName() string {
return "document_versions"
}