package
Version:
v0.0.0-...-88196c3
Opens a new window with list of versions in this module.
Published: Aug 2, 2021
License: Unlicense
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Base struct {
ID string `sql:"type:uuid;primary_key" json:"id"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
}
type Item struct {
Base
Name string `json:"name"`
Category string `json:"category"`
Count uint `json:"count"`
Done bool `json:"done"`
Removed bool `json:"removed"`
ListID string `json:"list_id"`
}
type List struct {
Base
Name string `json:"name"`
Description string `json:"description"`
Color uint32 `json:"color"`
UserID string `json:"user_id"`
Removed bool `json:"removed"`
Done bool `json:"done"`
Items []Item `json:"items"`
}
type User struct {
Base
Email string `json:"email"`
Lists []List `json:"lists"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.