refactor(documents): split document models

This commit is contained in:
2026-07-24 12:20:39 +08:00
parent 77beaebb30
commit 1578c81a89
4 changed files with 72 additions and 63 deletions

View File

@@ -0,0 +1,15 @@
package models
import "time"
type SaDocumentContent struct {
ID uint `gorm:"primaryKey"`
DocumentID uint `gorm:"uniqueIndex;not null"`
Markdown string `gorm:"type:text"`
CreatedAt time.Time
UpdatedAt time.Time
}
func (SaDocumentContent) TableName() string {
return "sa_document_contents"
}