event_frozen_semen_log.go 595 B

12345678910111213141516171819202122
  1. package model
  2. type EventFrozenSemenLog struct {
  3. Id int64 `json:"id"`
  4. BullId string `json:"bull_id"`
  5. CowId int64 `json:"cow_id"`
  6. StallNumberId int64 `json:"stall_number_id"`
  7. CreatedAt int64 `json:"created_at"`
  8. UpdatedAt int64 `json:"updated_at"`
  9. }
  10. func (e *EventFrozenSemenLog) TableName() string {
  11. return "event_frozen_semen_log"
  12. }
  13. func NewEventFrozenSemenLog(bullId string, cow *Cow, stallNumberId int64) *EventFrozenSemenLog {
  14. return &EventFrozenSemenLog{
  15. BullId: bullId,
  16. CowId: cow.Id,
  17. StallNumberId: stallNumberId,
  18. }
  19. }