96 lines
3.3 KiB
Go
96 lines
3.3 KiB
Go
// Code generated by sqlc. DO NOT EDIT.
|
|
// versions:
|
|
// sqlc v1.20.0
|
|
|
|
package db
|
|
|
|
import (
|
|
"database/sql"
|
|
|
|
"github.com/sqlc-dev/pqtype"
|
|
)
|
|
|
|
type Location struct {
|
|
ID int32 `json:"id"`
|
|
Address sql.NullString `json:"address"`
|
|
Name sql.NullString `json:"name"`
|
|
GoogleMapsLink sql.NullString `json:"google_maps_link"`
|
|
SubmittedBy int32 `json:"submitted_by"`
|
|
TotalVisited sql.NullInt32 `json:"total_visited"`
|
|
Thumbnail sql.NullString `json:"thumbnail"`
|
|
RegencyID int16 `json:"regency_id"`
|
|
IsDeleted sql.NullBool `json:"is_deleted"`
|
|
CreatedAt sql.NullTime `json:"created_at"`
|
|
UpdatedAt sql.NullTime `json:"updated_at"`
|
|
}
|
|
|
|
type LocationImage struct {
|
|
ID int32 `json:"id"`
|
|
Url string `json:"url"`
|
|
LocationID int32 `json:"location_id"`
|
|
UploadedBy sql.NullInt32 `json:"uploaded_by"`
|
|
CreatedAt sql.NullTime `json:"created_at"`
|
|
UpdatedAt sql.NullTime `json:"updated_at"`
|
|
}
|
|
|
|
type Province struct {
|
|
ID int32 `json:"id"`
|
|
ProvinceName sql.NullString `json:"province_name"`
|
|
RegionID int16 `json:"region_id"`
|
|
CreatedAt sql.NullTime `json:"created_at"`
|
|
UpdatedAt sql.NullTime `json:"updated_at"`
|
|
}
|
|
|
|
type Regency struct {
|
|
ID int32 `json:"id"`
|
|
RegencyName sql.NullString `json:"regency_name"`
|
|
ProvinceID int16 `json:"province_id"`
|
|
CreatedAt sql.NullTime `json:"created_at"`
|
|
UpdatedAt sql.NullTime `json:"updated_at"`
|
|
}
|
|
|
|
type Region struct {
|
|
ID int32 `json:"id"`
|
|
RegionName sql.NullString `json:"region_name"`
|
|
CreatedAt sql.NullTime `json:"created_at"`
|
|
UpdatedAt sql.NullTime `json:"updated_at"`
|
|
}
|
|
|
|
type Review struct {
|
|
ID int32 `json:"id"`
|
|
SubmittedBy int32 `json:"submitted_by"`
|
|
Comments string `json:"comments"`
|
|
Score int16 `json:"score"`
|
|
IsHided sql.NullBool `json:"is_hided"`
|
|
LocationID int32 `json:"location_id"`
|
|
CreatedAt sql.NullTime `json:"created_at"`
|
|
UpdatedAt sql.NullTime `json:"updated_at"`
|
|
}
|
|
|
|
type Tag struct {
|
|
ID int32 `json:"id"`
|
|
Name string `json:"name"`
|
|
TargetID sql.NullInt32 `json:"target_id"`
|
|
TagsType sql.NullString `json:"tags_type"`
|
|
CreatedAt sql.NullTime `json:"created_at"`
|
|
UpdatedAt sql.NullTime `json:"updated_at"`
|
|
}
|
|
|
|
type User struct {
|
|
ID int32 `json:"id"`
|
|
Email sql.NullString `json:"email"`
|
|
Username sql.NullString `json:"username"`
|
|
Password sql.NullString `json:"password"`
|
|
AvatarPicture sql.NullString `json:"avatar_picture"`
|
|
GoogleSignInPayload sql.NullString `json:"google_sign_in_payload"`
|
|
BannedAt sql.NullTime `json:"banned_at"`
|
|
BannedUntil sql.NullTime `json:"banned_until"`
|
|
IsAdmin sql.NullBool `json:"is_admin"`
|
|
IsCritics sql.NullBool `json:"is_critics"`
|
|
IsVerified sql.NullBool `json:"is_verified"`
|
|
Ipv4Address string `json:"ipv4_address"`
|
|
SocialMedia pqtype.NullRawMessage `json:"social_media"`
|
|
CreatedAt sql.NullTime `json:"created_at"`
|
|
UpdatedAt sql.NullTime `json:"updated_at"`
|
|
}
|