Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Metadata ¶
type Metadata[ID ~int64] struct { ID ID CreatedAt time.Time `sql:",stored"` UpdatedAt time.Time `sql:",stored"` }
func (*Metadata[ID]) SetUpdatedAt ¶
type User ¶
type UserProject ¶
type UserProject struct {
Metadata[UserProjectID] `json:",inline" sql:",inline"`
UserID UserID `sql:",stored,index,fk:User.ID"`
ProjectID ProjectID `sql:",stored,index"`
}
func (UserProject) TableName ¶
func (UserProject) TableName() string
type UserProjectID ¶
Click to show internal directories.
Click to hide internal directories.