the rest
This commit is contained in:
44
internal/db/models.go
Normal file
44
internal/db/models.go
Normal 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"`
|
||||
}
|
||||
Reference in New Issue
Block a user