Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Computer ¶
type Computer struct { ID uuid.UUID `gorm:"type:uuid;primary_key;"` Name string ComputersLanguages []ComputersLanguages `gorm:"foreignkey:ComputerID;association_foreignkey:ID"` }
type ComputersLanguages ¶
type ComputersLanguages struct { ID uuid.UUID `gorm:"type:uuid;primary_key;"` ComputerID uuid.UUID `sql:"type:uuid REFERENCES computers(id) ON DELETE CASCADE"` LanguageID uuid.UUID `sql:"type:uuid REFERENCES languages(id) ON DELETE CASCADE"` Language Language `gorm:"foreignkey:LanguageID;association_foreignkey:ID"` Computer Computer `gorm:"foreignkey:ComputerID;association_foreignkey:ID"` }
type CreditCard ¶
type Language ¶
type Language struct { ID uuid.UUID `gorm:"type:uuid;primary_key;"` Name string ComputersLanguages []ComputersLanguages `gorm:"foreignkey:ComputerID;association_foreignkey:ID"` }
Click to show internal directories.
Click to hide internal directories.