16 lines
315 B
Go
16 lines
315 B
Go
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"
|
|
}
|