Set an explicit default for Deleted

main
Max Ignatenko 2024-02-25 10:30:49 +00:00
parent fdace096fb
commit 0b6e326762
1 changed files with 1 additions and 1 deletions

View File

@ -38,7 +38,7 @@ type Record struct {
Rkey string `gorm:"index:idx_repo_record_key,unique,priority:3"` Rkey string `gorm:"index:idx_repo_record_key,unique,priority:3"`
AtRev string `gorm:"index:idx_repo_rev"` AtRev string `gorm:"index:idx_repo_rev"`
Content json.RawMessage `gorm:"type:JSONB"` Content json.RawMessage `gorm:"type:JSONB"`
Deleted bool Deleted bool `gorm:"default:false"`
} }
func AutoMigrate(db *gorm.DB) error { func AutoMigrate(db *gorm.DB) error {