Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Base ¶
type Base struct { UID uuid.UUID `gorm:"type:uuid;primary_key;<-:create"` // allow read and create CreateTime time.Time `gorm:"autoCreateTime:nano"` UpdateTime time.Time `gorm:"autoUpdateTime:nano"` DeleteTime gorm.DeletedAt `sql:"index"` }
Base contains common columns for all tables
type User ¶
type User struct { Base ID string `gorm:"unique;not null;"` Email sql.NullString CompanyName sql.NullString Role sql.NullString UsageDataCollection bool `gorm:"default:false"` NewsletterSubscription bool `gorm:"default:false"` }
User defines a user instance in the database
Click to show internal directories.
Click to hide internal directories.