migrate from github
This commit is contained in:
@@ -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"
|
||||
}
|
||||
Reference in New Issue
Block a user