Files
MyClub/internal/db/sqlc/eshopreporting/models.go
T
Tomas Dvorak 30d70a6aeb update
2026-03-13 14:34:19 +01:00

166 lines
6.7 KiB
Go

// Code generated by sqlc. DO NOT EDIT.
// versions:
// sqlc v1.30.0
package eshopreporting
import (
"database/sql"
)
type EshopCart struct {
ID int32 `json:"id"`
CreatedAt sql.NullTime `json:"created_at"`
UpdatedAt sql.NullTime `json:"updated_at"`
DeletedAt sql.NullTime `json:"deleted_at"`
UserID sql.NullInt32 `json:"user_id"`
SessionToken sql.NullString `json:"session_token"`
Currency sql.NullString `json:"currency"`
Completed sql.NullBool `json:"completed"`
}
type EshopCartItem struct {
ID int32 `json:"id"`
CreatedAt sql.NullTime `json:"created_at"`
UpdatedAt sql.NullTime `json:"updated_at"`
DeletedAt sql.NullTime `json:"deleted_at"`
CartID int32 `json:"cart_id"`
ProductID int32 `json:"product_id"`
VariantID sql.NullInt32 `json:"variant_id"`
Quantity int32 `json:"quantity"`
UnitPriceCents int64 `json:"unit_price_cents"`
Currency sql.NullString `json:"currency"`
}
type EshopOrder struct {
ID int32 `json:"id"`
CreatedAt sql.NullTime `json:"created_at"`
UpdatedAt sql.NullTime `json:"updated_at"`
DeletedAt sql.NullTime `json:"deleted_at"`
OrderNumber string `json:"order_number"`
UserID sql.NullInt32 `json:"user_id"`
SessionToken sql.NullString `json:"session_token"`
Email sql.NullString `json:"email"`
FirstName sql.NullString `json:"first_name"`
LastName sql.NullString `json:"last_name"`
BillingAddressJson sql.NullString `json:"billing_address_json"`
ShippingAddressJson sql.NullString `json:"shipping_address_json"`
Status sql.NullString `json:"status"`
TotalAmountCents int64 `json:"total_amount_cents"`
Currency sql.NullString `json:"currency"`
ShippingMethod sql.NullString `json:"shipping_method"`
ShippingPriceCents sql.NullInt64 `json:"shipping_price_cents"`
ShippingDataJson sql.NullString `json:"shipping_data_json"`
MetadataJson sql.NullString `json:"metadata_json"`
}
type EshopOrderItem struct {
ID int32 `json:"id"`
CreatedAt sql.NullTime `json:"created_at"`
UpdatedAt sql.NullTime `json:"updated_at"`
DeletedAt sql.NullTime `json:"deleted_at"`
OrderID int32 `json:"order_id"`
ProductID int32 `json:"product_id"`
VariantID sql.NullInt32 `json:"variant_id"`
Name string `json:"name"`
Sku sql.NullString `json:"sku"`
Quantity int32 `json:"quantity"`
UnitPriceCents int64 `json:"unit_price_cents"`
Currency sql.NullString `json:"currency"`
VatRate sql.NullString `json:"vat_rate"`
}
type EshopPayment struct {
ID int32 `json:"id"`
CreatedAt sql.NullTime `json:"created_at"`
UpdatedAt sql.NullTime `json:"updated_at"`
DeletedAt sql.NullTime `json:"deleted_at"`
OrderID int32 `json:"order_id"`
Provider sql.NullString `json:"provider"`
ProviderPaymentID sql.NullString `json:"provider_payment_id"`
Status sql.NullString `json:"status"`
AmountCents int64 `json:"amount_cents"`
Currency sql.NullString `json:"currency"`
RawPayloadJson sql.NullString `json:"raw_payload_json"`
}
type EshopProduct struct {
ID int32 `json:"id"`
CreatedAt sql.NullTime `json:"created_at"`
UpdatedAt sql.NullTime `json:"updated_at"`
DeletedAt sql.NullTime `json:"deleted_at"`
Slug string `json:"slug"`
Name string `json:"name"`
ShortDescription sql.NullString `json:"short_description"`
DescriptionHtml sql.NullString `json:"description_html"`
PriceCents int64 `json:"price_cents"`
Currency sql.NullString `json:"currency"`
VatRate sql.NullString `json:"vat_rate"`
Active sql.NullBool `json:"active"`
StockMode sql.NullString `json:"stock_mode"`
DefaultImageUrl sql.NullString `json:"default_image_url"`
GalleryJson sql.NullString `json:"gallery_json"`
Tags sql.NullString `json:"tags"`
MetadataJson sql.NullString `json:"metadata_json"`
CategoryID sql.NullInt32 `json:"category_id"`
}
type EshopProductCategory struct {
ID int32 `json:"id"`
CreatedAt sql.NullTime `json:"created_at"`
UpdatedAt sql.NullTime `json:"updated_at"`
DeletedAt sql.NullTime `json:"deleted_at"`
Slug string `json:"slug"`
Name string `json:"name"`
ParentID sql.NullInt32 `json:"parent_id"`
DisplayOrder sql.NullInt32 `json:"display_order"`
Active sql.NullBool `json:"active"`
}
type EshopProductVariant struct {
ID int32 `json:"id"`
CreatedAt sql.NullTime `json:"created_at"`
UpdatedAt sql.NullTime `json:"updated_at"`
DeletedAt sql.NullTime `json:"deleted_at"`
ProductID int32 `json:"product_id"`
Sku sql.NullString `json:"sku"`
Name sql.NullString `json:"name"`
AttributesJson sql.NullString `json:"attributes_json"`
StockQty sql.NullInt32 `json:"stock_qty"`
Barcode sql.NullString `json:"barcode"`
ImageUrl sql.NullString `json:"image_url"`
}
type EshopSetting struct {
ID int32 `json:"id"`
CreatedAt sql.NullTime `json:"created_at"`
UpdatedAt sql.NullTime `json:"updated_at"`
DeletedAt sql.NullTime `json:"deleted_at"`
DefaultCurrency sql.NullString `json:"default_currency"`
SupportedCurrencies sql.NullString `json:"supported_currencies"`
DefaultCountry sql.NullString `json:"default_country"`
ShippingOptionsJson sql.NullString `json:"shipping_options_json"`
TermsUrl sql.NullString `json:"terms_url"`
ReturnsPolicyUrl sql.NullString `json:"returns_policy_url"`
SupportEmail sql.NullString `json:"support_email"`
SupportPhone sql.NullString `json:"support_phone"`
}
type EshopShippingLabel struct {
ID int32 `json:"id"`
CreatedAt sql.NullTime `json:"created_at"`
UpdatedAt sql.NullTime `json:"updated_at"`
DeletedAt sql.NullTime `json:"deleted_at"`
OrderID int32 `json:"order_id"`
Carrier sql.NullString `json:"carrier"`
PacketaPacketID sql.NullString `json:"packeta_packet_id"`
TrackingNumber sql.NullString `json:"tracking_number"`
LabelUrl sql.NullString `json:"label_url"`
Status sql.NullString `json:"status"`
HistoryJson sql.NullString `json:"history_json"`
}
type User struct {
ID int32 `json:"id"`
}