This commit is contained in:
tumillanino
2025-10-28 12:36:37 +11:00
parent 186d6768fb
commit dad3ec655f
31 changed files with 2256 additions and 0 deletions

44
internal/db/models.go Normal file
View File

@@ -0,0 +1,44 @@
// 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"`
}
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"`
}