You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

17 lines
359 B

  1. package model
  2. type Setup struct {
  3. ID uint `json:"id" gorm:"primaryKey"`
  4. Version string `json:"version" gorm:"type:varchar(50);not null"`
  5. InitializedAt int64 `json:"initialized_at" gorm:"type:bigint;not null"`
  6. }
  7. func GetSetup() *Setup {
  8. var setup Setup
  9. err := DB.First(&setup).Error
  10. if err != nil {
  11. return nil
  12. }
  13. return &setup
  14. }