Go: refactor config (#17678)

Signed-off-by: Jin Hai <haijin.chn@gmail.com>
This commit is contained in:
Jin Hai
2026-08-01 22:06:56 +08:00
committed by GitHub
parent 26a5af8b83
commit f621b4c7b4
20 changed files with 302 additions and 1027 deletions

View File

@@ -38,7 +38,7 @@ func (FileCommit) TableName() string {
// FileCommitItem represents a single file change within a commit.
type FileCommitItem struct {
ID string `gorm:"column:id;primaryKey;size:32" json:"id"`
Seq uint `gorm:"column:seq;autoIncrement;index" json:"seq,omitempty"`
Seq uint `gorm:"column:seq;index" json:"seq,omitempty"`
CommitID string `gorm:"column:commit_id;size:32;not null;uniqueIndex:idx_commit_file" json:"commit_id"`
FileID string `gorm:"column:file_id;size:255;not null;uniqueIndex:idx_commit_file" json:"file_id"`
Operation string `gorm:"column:operation;size:16;not null;index" json:"operation"`