Documentation ¶
Index ¶
Constants ¶
View Source
const ( ExampleEnumFieldTypeA = ExampleEnumFieldType(1) // Example enum field A ExampleEnumFieldTypeB = ExampleEnumFieldType(2) // Example enum field B ExampleEnumFieldTypeC = ExampleEnumFieldType(3) // Example enum field C )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Example ¶
type Example struct { Model Field1 *string `gorm:"type:varchar(255);not null;default:''"` // Example field 1 Field2 *uint64 `gorm:"type:uint;not null;default:0"` // Example field 2 Field3 *bool `gorm:"type:bool;not null;default:false"` // Example field 3 Field4 *ExampleEnumFieldType `gorm:"type:uint;not null;default:1"` // Example field 4 }
type ExampleEnumFieldType ¶
type ExampleEnumFieldType int
type Model ¶
type Model struct { Id uint64 `gorm:"type:uint;primary_key;auto_increment;not null"` // ID CreateTime *int64 `gorm:"type:uint;not null"` // created time UpdateTime *int64 `gorm:"type:uint;not null"` // last updated time DeleteTime *soft_delete.DeletedAt `gorm:"type:uint;not null;default:0"` // deleted time }
Click to show internal directories.
Click to hide internal directories.