Files
website/internal/db/models.go
2025-10-28 14:19:54 +11:00

48 lines
1.4 KiB
Go

// Code generated by sqlc. DO NOT EDIT.
// versions:
// sqlc v1.30.0
package db
import (
"database/sql"
"time"
)
type Booking struct {
ID int64 `json:"id"`
UserID sql.NullInt64 `json:"user_id"`
ServiceID sql.NullInt64 `json:"service_id"`
EventDate time.Time `json:"event_date"`
Notes sql.NullString `json:"notes"`
CreatedAt sql.NullTime `json:"created_at"`
Address sql.NullString `json:"address"`
Status sql.NullString `json:"status"`
ServiceOption sql.NullString `json:"service_option"`
EventType sql.NullString `json:"event_type"`
}
type GalleryPhoto struct {
ID int64 `json:"id"`
ImageUrl string `json:"image_url"`
Caption sql.NullString `json:"caption"`
CreatedAt sql.NullTime `json:"created_at"`
ShowOnHome sql.NullBool `json:"show_on_home"`
}
type Service struct {
ID int64 `json:"id"`
Name string `json:"name"`
Description sql.NullString `json:"description"`
PriceCents int32 `json:"price_cents"`
CreatedAt sql.NullTime `json:"created_at"`
}
type User struct {
ID int64 `json:"id"`
Email string `json:"email"`
CreatedAt sql.NullTime `json:"created_at"`
OryIdentityID sql.NullString `json:"ory_identity_id"`
IsAdmin sql.NullBool `json:"is_admin"`
}