Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type User ¶
type User struct { ID uint `gorm:"primaryKey"` // Standard field for the primary key Name string `gorm:"index"` // 一个常规字符串字段 Email *string // 一个指向字符串的指针, allowing for null values Age uint8 // 一个未签名的8位整数 Birthday *time.Time // A pointer to time.Time, can be null MemberNumber sql.NullString // Uses sql.NullString to handle nullable strings ActivatedAt sql.NullTime // Uses sql.NullTime for nullable time fields CreatedAt time.Time // 创建时间(由GORM自动管理) UpdatedAt time.Time // 最后一次更新时间(由GORM自动管理) }
Click to show internal directories.
Click to hide internal directories.