···2233import (
44 "time"
55-66- "gorm.io/gorm"
75)
8697type DomainBan struct {
1010- gorm.Model
88+ ID uint64 `gorm:"column:id;primarykey"`
99+ // CreatedAt is automatically managed by gorm (by convention)
1010+ CreatedAt time.Time
1111+1112 Domain string `gorm:"unique"`
1213}
1314···9596 CommitCID string `gorm:"column:commit_cid;not null"`
96979798 // The CID of the top of the repo MST, which is the 'data' field within the commit block. This becomes 'prevData'
9898- CommitData string `gorm:"column:commit_data;not null"`
9999+ CommitDataCID string `gorm:"column:commit_data_cid;not null"`
99100}
100101101102func (AccountRepo) TableName() string {