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
+24
View File
@@ -0,0 +1,24 @@
package model
import (
"time"
"gorm.io/gorm"
)
type DocumentComment struct {
ID int64 `gorm:"primaryKey;autoIncrement" json:"id"`
ExternalID string `gorm:"size:100;unique;index;not null" json:"external_id"`
DocumentID int64 `gorm:"index;not null" json:"document_id"`
ParentID int64 `gorm:"default:0;index" json:"parent_id"`
CreatorID int64 `gorm:"index;not null" json:"creator_id"`
Content string `gorm:"type:text;not null" json:"content"`
AnchorID string `gorm:"size:128;index" json:"anchor_id"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
DeletedAt gorm.DeletedAt `gorm:"index" json:"-"`
}
func (DocumentComment) TableName() string {
return "document_comments"
}