type Link struct {
ID int `json:"id"`
User User `json:"-"`
Short string `json:"short"`
Long string `json:"long"`
Active bool `json:"active"`
Visited int `json:"visited"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt *sql.NullTime `json:"updated_at"`
}
type Token struct {
ID int `json:"-"`
Token string `json:"token"`
User User `json:"-"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt *sql.NullTime `json:"updated_at"`
}
type User struct {
ID int `json:"-"`
Username string `json:"username"`
Password string `json:"-"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt *sql.NullTime `json:"updated_at"`
}