Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Card ¶
type Card struct { gorm.Model ID uuid.UUID `gorm:"type:uuid;default:uuid_generate_v4();primary_key"` Name string `gorm:"size:100"` CardHolderName string Number string Brand string ExpirationMonth string ExpirationYear string SecurityCode string UserID uuid.UUID Meta []MetaCard `gorm:"constraint:OnUpdate:CASCADE,OnDelete:CASCADE;"` }
type MetaBinary ¶
type User ¶
type User struct { ID uuid.UUID `gorm:"type:uuid;default:uuid_generate_v4();primary_key"` Email string `gorm:"unique;uniqueIndex;not null"` Password string `gorm:"not null"` CreatedAt time.Time UpdatedAt time.Time Cards []Card `gorm:"constraint:OnUpdate:CASCADE,OnDelete:CASCADE;"` Logins []Login `gorm:"constraint:OnUpdate:CASCADE,OnDelete:CASCADE;"` Notes []Note `gorm:"constraint:OnUpdate:CASCADE,OnDelete:CASCADE;"` Bynary []Binary `gorm:"constraint:OnUpdate:CASCADE,OnDelete:CASCADE;"` }
Click to show internal directories.
Click to hide internal directories.