Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Email ¶ added in v1.0.2
type Email struct { ID string `gorm:"primaryKey;Column:id;type:varchar(45)" json:"id"` CreatedAt time.Time `gorm:"Column:created_at;type:timestamptz;not null" json:"createdAt"` UpdatedAt time.Time `gorm:"Column:updated_at;type:timestamptz;not null" json:"updatedAt"` DeletedAt gorm.DeletedAt `gorm:"Column:deleted_at;type:timestamptz" json:"deletedAt"` UserID string `gorm:"Column:user_id;type:varchar(45);not null" json:"userId"` Email string `gorm:"Column:email;type:varchar(255);not null" json:"email"` }
type User ¶
type User struct { ID string `gorm:"primaryKey;Column:id;type:varchar(45)" json:"id"` CreatedAt time.Time `gorm:"Column:created_at;type:timestamptz;not null" json:"createdAt"` UpdatedAt time.Time `gorm:"Column:updated_at;type:timestamptz;not null" json:"updatedAt"` DeletedAt gorm.DeletedAt `gorm:"Column:deleted_at;type:timestamptz" json:"deletedAt"` Name string `gorm:"Column:name;type:varchar(255);not null" json:"name"` Emails []Email `gorm:"foreignKey:UserID;references:ID" json:"emails"` }
Click to show internal directories.
Click to hide internal directories.