Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UsState ¶
type UsState struct { bun.BaseModel `bun:"table:us_states,alias:ust" json:"-"` // Primary identifiers ID pulid.ID `json:"id" bun:",pk,type:VARCHAR(100)"` // Core fields Name string `json:"name" bun:"name,notnull"` Abbreviation string `json:"abbreviation" bun:"abbreviation,notnull"` CountryName string `json:"countryName" bun:"country_name,notnull"` CountryIso3 string `json:"countryIso3" bun:"country_iso3,notnull,default:'USA'"` // Metadata and versioning CreatedAt int64 `json:"createdAt" bun:"created_at,type:BIGINT,nullzero,notnull,default:extract(epoch from current_timestamp)::bigint"` UpdatedAt int64 `json:"updatedAt" bun:"updated_at,type:BIGINT,nullzero,notnull,default:extract(epoch from current_timestamp)::bigint"` }
UsState is the entity for a US state.
Click to show internal directories.
Click to hide internal directories.