Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Task ¶
type Task struct { ID uuid.UUID `json:"id" gorm:"type:char(36);primary_key"` Task string `json:"task"` Finished bool `json:"finished"` UserID string `json:"userId"` // User User `json:"user" gorm:"foreignKey:UserID"` CreatedAt time.Time `json:"createdAt"` UpdatedAt *time.Time `json:"updatedAt"` DeletedAt *gorm.DeletedAt `json:"deletedAt" gorm:"index"` }
type TaskRepository ¶
type User ¶
type User struct { ID uuid.UUID `json:"id" gorm:"type:char(36);primary_key"` Username string `json:"username" gorm:"unique"` Name string `json:"name"` Email string `json:"email" gorm:"unique"` Password string `json:"-"` Tasks []Task `json:"tasks"` CreatedAt time.Time `json:"createdAt"` UpdatedAt *time.Time `json:"updatedAt"` DeletedAt *gorm.DeletedAt `json:"deletedAt" gorm:"index"` }
Click to show internal directories.
Click to hide internal directories.