Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Employee ¶
type Employee struct { ID int `gorm:"primaryKey"` Lastname string `gorm:"size:124;not null"` Firstname string `gorm:"size:124;not null"` Middlename string `gorm:"size:124;"` Address string `gorm:"size:255;not null"` Birth_date time.Time PositionID uint8 `gorm:"not null"` CreatedAt time.Time UpdatedAt time.Time DeletedAt gorm.DeletedAt `gorm:"index"` Position Position Trips []Trip `gorm:"many2many:trips_employees;"` }
type FishTypeTrip ¶
type Trip ¶
type Trip struct { ID int `gorm:"primaryKey"` BoatID int `gorm:"not null"` DepartureDate time.Time ArrivalDate time.Time `gorm:"default:2006-01-02"` Boat Boat Employees []Employee `gorm:"many2many:trips_employees;"` SeaBanks []SeaBank `gorm:"many2many:sea_banks_trips;"` FishTypes []FishType `gorm:"many2many:fish_type_trips;"` }
Click to show internal directories.
Click to hide internal directories.