Discover Packages
github.com/illiafox/spy-cat-test-assignment
app
internal
repository
postgres
schema
package
Version:
v0.1.0
Opens a new window with list of versions in this module.
Published: Jul 13, 2024
License: GPL-3.0
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type Cat struct {
ID int `db:"id"`
Name string `db:"name"`
ExperienceYears int16 `db:"experience_years"`
Breed string `db:"breed"`
Salary int `db:"salary"`
CreatedAt time .Time `db:"created_at"`
UpdatedAt time .Time `db:"updated_at"`
}
type Mission struct {
ID int `db:"id"`
AssignedCatID *int `db:"assigned_cat_id"`
IsCompleted bool `db:"is_completed"`
CreatedAt time .Time `db:"created_at"`
UpdatedAt time .Time `db:"updated_at"`
}
type Note struct {
ID int `db:"mission_id"`
TargetID int `db:"target_id"`
Content string `db:"content"`
CreatedAt time .Time `db:"created_at"`
}
type Target struct {
ID int `db:"id"`
MissionID int `db:"mission_id"`
IsCompleted bool `db:"is_completed"`
Name string `db:"name"`
Country string `db:"country"`
CreatedAt time .Time `db:"created_at"`
UpdatedAt time .Time `db:"updated_at"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.