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;references: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;references:ID"` Computer Computer `gorm:"foreignKey:ComputerID;references: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.