Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Base ¶
type Base struct { ID *resource.Identifier `gorm:"type:uuid;primary_key;"` // `gorm:"primary_key;type:uuid;default:uuid_generate_v4()"` CreatedAt *time.Time `json:"created_at"` UpdatedAt *time.Time `json:"update_at"` DeletedAt *time.Time `sql:"index" json:"deleted_at"` }
Base contains common columns for all tables. CREATE EXTENSION IF NOT EXISTS "uuid-ossp" WITH SCHEMA public; ?
Click to show internal directories.
Click to hide internal directories.