import "code.pfad.fr/buchungssystem/database"
type Booking struct {
ID int32
HouseID string
StartAt time.Time
EndAt time.Time
PeopleOver json.RawMessage
Contact string
Email string
Phone string
Comment string
Invoice json.RawMessage
CreatedAt time.Time
AdminConfirmedAt sql.NullTime
UserConfirmedAt sql.NullTime
CancelledAt sql.NullTime
HashedToken string
Landline string
}
type BookingCreateParams struct {
HouseID string
StartAt time.Time
EndAt time.Time
PeopleOver json.RawMessage
Contact string
Email string
Phone string
Landline string
Comment string
Invoice json.RawMessage
}
type BookingExpiredParams struct {
AdminConfirmedAt sql.NullTime
StartAt time.Time
HouseID string
}
type BookingIndexParams struct {
HouseID string
StartAt time.Time
EndAt time.Time
Search string
IncludeUnconfirmed bool
IncludeAdminConfirmed bool
IncludeUserConfirmed bool
IncludeCancelled bool
PriceID string
AdminCharges string
AdminChargesCount int32
Limit int32
Offset int32
}
type BookingIndexRow struct {
ID int32
HouseID string
StartAt time.Time
EndAt time.Time
PeopleOver json.RawMessage
Contact string
Email string
Phone string
Comment string
Invoice json.RawMessage
CreatedAt time.Time
AdminConfirmedAt sql.NullTime
UserConfirmedAt sql.NullTime
CancelledAt sql.NullTime
HashedToken string
Landline string
TotalCount int64
}
type BookingUpdateContactParams struct {
Contact string
Email string
Phone string
Landline string
Invoice json.RawMessage
ID int32
}
type BookingUpdatePeopleAgesParams struct {
PeopleOver json.RawMessage
ID int32
}
type Charge struct {
ID string
Name string
Description string
HouseID string
PriceID string
Unit string
Amount int32
MinPersonCharged int32
ChargedOverPersonCount int32
ExemptedUnderAge int32
Optionality string
CreatedAt time.Time
DeletedAt sql.NullTime
}
type DBTX interface {
ExecContext(context.Context, string, ...interface{}) (sql.Result, error)
PrepareContext(context.Context, string) (*sql.Stmt, error)
QueryContext(context.Context, string, ...interface{}) (*sql.Rows, error)
QueryRowContext(context.Context, string, ...interface{}) *sql.Row
}
type Email struct {
ID string
BookingID int32
HeaderFrom string
HeaderTo string
HeaderSubject string
TextPlain string
CreatedAt time.Time
SentAt sql.NullTime
FatalError string
}
type EmailCreateParams struct {
ID string
BookingID int32
HeaderFrom string
HeaderTo string
HeaderSubject string
TextPlain string
FatalError string
}
type ExtraRequest struct {
ID int32
Weight int32
HouseID string
Description string
Pricing string
}
type House struct {
ID string
Name string
CreatedAt time.Time
MaxPerson int32
StartMinute int32
EndMinute int32
ReplyTo string
DaysForUserConfirmation int32
MonthsForPublicBooking int32
PublicBookingType string
}
type LogEvent struct {
ID int32
BookingID int32
UserID sql.NullString
Message string
CreatedAt time.Time
}
type LogEventCreateParams struct {
BookingID int32
UserID sql.NullString
Message string
}
type Queries struct {/* contains filtered or unexported fields */}
func (q *Queries) BookableDayIndex(ctx context.Context, arg BookableDayIndexParams) ([]BookableDay, error)
func (q *Queries) BookableDayIndexUnlimited(ctx context.Context, arg BookableDayIndexUnlimitedParams) ([]BookableDay, error)
func (q *Queries) BookingAdminChargesIndex(ctx context.Context, houseID string) ([]BookingAdminChargesIndexRow, error)
func (q *Queries) BookingAnonymizeCancelled(ctx context.Context, cancelledAt sql.NullTime) ([]Booking, error)
func (q *Queries) BookingChargesIndex(ctx context.Context, arg BookingChargesIndexParams) ([]Charge, error)
func (q *Queries) BookingCountForEmail(ctx context.Context, arg BookingCountForEmailParams) (int64, error)
func (q *Queries) BookingEndingAfter(ctx context.Context, arg BookingEndingAfterParams) ([]Booking, error)
func (q *Queries) BookingExpired(ctx context.Context, arg BookingExpiredParams) ([]Booking, error)
func (q *Queries) BookingExtraChargesCreate(ctx context.Context, arg BookingExtraChargesCreateParams) error
func (q *Queries) BookingExtraChargesDelete(ctx context.Context, arg BookingExtraChargesDeleteParams) error
func (q *Queries) BookingExtraChargesIndex(ctx context.Context, bookingID int32) ([]BookingExtraCharge, error)
func (q *Queries) BookingExtraChargesUpdate(ctx context.Context, arg BookingExtraChargesUpdateParams) error
func (q *Queries) BookingIndex(ctx context.Context, arg BookingIndexParams) ([]BookingIndexRow, error)
func (q *Queries) BookingOverlapping(ctx context.Context, arg BookingOverlappingParams) ([]Booking, error)
func (q *Queries) BookingPricesIndex(ctx context.Context, arg BookingPricesIndexParams) ([]Price, error)
func (q *Queries) BookingStatusCount(ctx context.Context, arg BookingStatusCountParams) ([]BookingStatusCountRow, error)
func (q *Queries) BookingUpcoming(ctx context.Context, arg BookingUpcomingParams) ([]Booking, error)
func (q *Queries) BookingUpdatePeopleAges(ctx context.Context, arg BookingUpdatePeopleAgesParams) error
func (q *Queries) SettingBookableDayCreate(ctx context.Context, arg SettingBookableDayUpdateParams) error
func (q *Queries) SettingBookableDayIndex(ctx context.Context, arg SettingBookableDayIndexParams) ([]BookableDay, error)
BOOKABLE DAYS
func (q *Queries) SettingBookableDayUpdate(ctx context.Context, arg SettingBookableDayUpdateParams) error
SettingBookableDayCreate see settings.go
func (q *Queries) SettingBookableHouseIndex(ctx context.Context, userID string) ([]SettingBookableHouseIndexRow, error)
func (q *Queries) SettingChargeIndexPerHousePrice(ctx context.Context, arg SettingChargeIndexPerHousePriceParams) ([]Charge, error)
func (q *Queries) SettingChargeIndexPerPrice(ctx context.Context, priceID string) ([]Charge, error)
CHARGE
func (q *Queries) SettingExtraRequestCreate(ctx context.Context, arg SettingExtraRequestCreateParams) error
func (q *Queries) SettingExtraRequestUpdate(ctx context.Context, arg SettingExtraRequestUpdateParams) error
HOUSE
HOUSE-USER
func (q *Queries) SettingHouseUserInsertRole(ctx context.Context, arg SettingHouseUserInsertRoleParams) error
func (q *Queries) SettingHouseUserRole(ctx context.Context, arg SettingHouseUserRoleParams) (string, error)
func (q *Queries) SettingHouseUserUpdateRole(ctx context.Context, arg SettingHouseUserUpdateRoleParams) error
PRICE
func (q *Queries) SettingPriceHasBooking(ctx context.Context, arg SettingPriceHasBookingParams) (bool, error)
func (q *Queries) SettingRestDayIndex(ctx context.Context, arg SettingRestDayIndexParams) ([]BookableDay, error)
func (q *Queries) SettingUserHouseRoles(ctx context.Context, userID string) ([]SettingUserHouseRolesRow, error)
USER
func (q *Queries) SettingViewableHouseIndex(ctx context.Context, userID string) ([]SettingViewableHouseIndexRow, error)
type SettingBookableDayUpdateParams struct {
PriceID string
HouseID string
Start string
EndDate string
}
type SettingBookableHouseIndexRow struct {
ID string
Name string
CreatedAt time.Time
MaxPerson int32
StartMinute int32
EndMinute int32
ReplyTo string
DaysForUserConfirmation int32
MonthsForPublicBooking int32
PublicBookingType string
Role string
}
type SettingChargeCreateParams struct {
ID string
HouseID string
PriceID string
Name string
Description string
Unit string
Amount int32
MinPersonCharged int32
ChargedOverPersonCount int32
ExemptedUnderAge int32
Optionality string
}
type SettingChargeUpdateParams struct {
Name string
Description string
Unit string
Amount int32
MinPersonCharged int32
ChargedOverPersonCount int32
ExemptedUnderAge int32
Optionality string
ID string
}
type SettingExtraRequestCreateParams struct {
HouseID string
Description string
Pricing string
Weight int32
}
type SettingExtraRequestUpdateParams struct {
Description string
Pricing string
Weight int32
ID int32
}
type SettingHouseUpdateParams struct {
Name string
MaxPerson int32
ReplyTo string
StartMinute int32
EndMinute int32
PublicBookingType string
ID string
}
type SettingRestDayUpdateParams struct {
RestrictionReason string
HouseID string
Start string
EndDate string
}
type SettingUserHouseRolesRow struct {
HouseID string
Role sql.NullString
}
type SettingViewableHouseIndexRow struct {
ID string
Name string
CreatedAt time.Time
MaxPerson int32
StartMinute int32
EndMinute int32
ReplyTo string
DaysForUserConfirmation int32
MonthsForPublicBooking int32
PublicBookingType string
Role string
}
type User struct {
ID string
Email string
Name string
CreatedAt time.Time
AuthorizedAt sql.NullTime
Role string
}
bookings.go db.go migration.go models.go settings.go zql.authboss.go zql.bookings.go zql.emails.go zql.logevents.go zql.setting.go