Gorm
Jump to navigation
Jump to search
https://dev.to/karanpratapsingh/connecting-to-postgresql-using-gorm-24fj
https://gorm.io/docs/data_types.html
https://gorm.io/docs/models.html
gorm.Model GORM defined a gorm.Model struct, which includes fields ID, CreatedAt, UpdatedAt, DeletedAt // gorm.Model definition type Model struct { ID uint `gorm:"primaryKey"` CreatedAt time.Time UpdatedAt time.Time DeletedAt gorm.DeletedAt `gorm:"index"` }