Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Alliance ¶
type AuthenticationCode ¶
type Character ¶
type Character struct { CharacterId int64 `gorm:"primary_key"` CharacterName string `gorm:"varchar(100)"` Corporation Corporation `gorm:"ForeignKey:corporation_id;AssociationForeignKey:corporation_id;save_associations:false;"` CorporationId int64 Token string // this really isn't meant as a many to many but the flow of auth linking forces this or another method // which I didn't want to use Users []User `gorm:"many2many:user_character_map;save_associations:false;"` //AssociationForeignKey:user_id;ForeignKey:character_id;"` AuthCodes []AuthenticationCode `gorm:"ForeignKey:character_id"` InsertedDt *time.Time UpdatedDt *time.Time }
type Corporation ¶
type Corporation struct { CorporationId int64 `gorm:"primary_key"` CorporationName string `gorm:"varchar(100)"` CorporationTicker string `gorm:"varchar(5)"` Alliance Alliance `gorm:"ForeignKey:alliance_id;AssociationForeignKey:alliance_id;save_associations:false;"` AllianceId *int64 InsertedDt *time.Time UpdatedDt *time.Time }
func (Corporation) TableName ¶
func (Corporation) TableName() string
Click to show internal directories.
Click to hide internal directories.