package main import ( "time" ) /* Maybe worth saving uptime history? */ type Host struct { Id int64 UserId int64 Url string Protocoll string // e.g. http Private bool Response int64 /* Date time.Time Success bool Include string // Website must include this string Except string // Website must not include this string Reason string // Include, Exclude, Connection failure Alert bool // True to send alert on failure */ CreatedAt time.Time DeletedAt time.Time UpdatedAt time.Time } type User struct { Id int64 Name string Email string Password string CreatedAt time.Time DeletedAt time.Time UpdatedAt time.Time }