274 lines
5.5 KiB
Go
274 lines
5.5 KiB
Go
// Code generated by sqlc. DO NOT EDIT.
|
|
// versions:
|
|
// sqlc v1.28.0
|
|
|
|
package dbgen
|
|
|
|
import (
|
|
"github.com/jackc/pgx/v5/pgtype"
|
|
)
|
|
|
|
type Bet struct {
|
|
ID int64
|
|
Amount int64
|
|
TotalOdds float32
|
|
Status int32
|
|
FullName string
|
|
PhoneNumber string
|
|
BranchID pgtype.Int8
|
|
UserID pgtype.Int8
|
|
CashedOut bool
|
|
CashoutID string
|
|
CreatedAt pgtype.Timestamp
|
|
UpdatedAt pgtype.Timestamp
|
|
IsShopBet bool
|
|
}
|
|
|
|
type BetOutcome struct {
|
|
ID int64
|
|
BetID int64
|
|
EventID int64
|
|
OddID int64
|
|
}
|
|
|
|
type BetWithOutcome struct {
|
|
ID int64
|
|
Amount int64
|
|
TotalOdds float32
|
|
Status int32
|
|
FullName string
|
|
PhoneNumber string
|
|
BranchID pgtype.Int8
|
|
UserID pgtype.Int8
|
|
CashedOut bool
|
|
CashoutID string
|
|
CreatedAt pgtype.Timestamp
|
|
UpdatedAt pgtype.Timestamp
|
|
IsShopBet bool
|
|
Outcomes []BetOutcome
|
|
}
|
|
|
|
type Branch struct {
|
|
ID int64
|
|
Name string
|
|
Location string
|
|
WalletID int64
|
|
BranchManagerID int64
|
|
CompanyID int64
|
|
IsSelfOwned bool
|
|
CreatedAt pgtype.Timestamp
|
|
UpdatedAt pgtype.Timestamp
|
|
}
|
|
|
|
type BranchCashier struct {
|
|
ID int64
|
|
UserID int64
|
|
BranchID int64
|
|
}
|
|
|
|
type BranchDetail struct {
|
|
ID int64
|
|
Name string
|
|
Location string
|
|
WalletID int64
|
|
BranchManagerID int64
|
|
CompanyID int64
|
|
IsSelfOwned bool
|
|
CreatedAt pgtype.Timestamp
|
|
UpdatedAt pgtype.Timestamp
|
|
ManagerName interface{}
|
|
ManagerPhoneNumber pgtype.Text
|
|
}
|
|
|
|
type BranchOperation struct {
|
|
ID int64
|
|
OperationID int64
|
|
BranchID int64
|
|
CreatedAt pgtype.Timestamp
|
|
UpdatedAt pgtype.Timestamp
|
|
}
|
|
|
|
type CustomerWallet struct {
|
|
ID int64
|
|
CustomerID int64
|
|
CompanyID int64
|
|
RegularWalletID int64
|
|
StaticWalletID int64
|
|
CreatedAt pgtype.Timestamp
|
|
UpdatedAt pgtype.Timestamp
|
|
}
|
|
|
|
type Event struct {
|
|
ID string
|
|
SportID pgtype.Text
|
|
MatchName pgtype.Text
|
|
HomeTeam pgtype.Text
|
|
AwayTeam pgtype.Text
|
|
HomeTeamID pgtype.Text
|
|
AwayTeamID pgtype.Text
|
|
HomeKitImage pgtype.Text
|
|
AwayKitImage pgtype.Text
|
|
LeagueID pgtype.Text
|
|
LeagueName pgtype.Text
|
|
LeagueCc pgtype.Text
|
|
StartTime pgtype.Timestamp
|
|
Score pgtype.Text
|
|
MatchMinute pgtype.Int4
|
|
TimerStatus pgtype.Text
|
|
AddedTime pgtype.Int4
|
|
MatchPeriod pgtype.Int4
|
|
IsLive pgtype.Bool
|
|
Status pgtype.Text
|
|
FetchedAt pgtype.Timestamp
|
|
}
|
|
|
|
type Notification struct {
|
|
ID string
|
|
RecipientID int64
|
|
Type string
|
|
Level string
|
|
ErrorSeverity pgtype.Text
|
|
Reciever string
|
|
IsRead bool
|
|
DeliveryStatus string
|
|
DeliveryChannel pgtype.Text
|
|
Payload []byte
|
|
Priority pgtype.Int4
|
|
Version int32
|
|
Timestamp pgtype.Timestamptz
|
|
Metadata []byte
|
|
}
|
|
|
|
type Odd struct {
|
|
ID int32
|
|
EventID pgtype.Text
|
|
Fi pgtype.Text
|
|
RawEventID pgtype.Text
|
|
MarketType string
|
|
MarketName pgtype.Text
|
|
MarketCategory pgtype.Text
|
|
MarketID pgtype.Text
|
|
Header pgtype.Text
|
|
Name pgtype.Text
|
|
Handicap pgtype.Text
|
|
OddsValue pgtype.Float8
|
|
Section string
|
|
Category pgtype.Text
|
|
RawOdds []byte
|
|
FetchedAt pgtype.Timestamp
|
|
Source pgtype.Text
|
|
IsActive pgtype.Bool
|
|
}
|
|
|
|
type Otp struct {
|
|
ID int64
|
|
SentTo string
|
|
Medium string
|
|
OtpFor string
|
|
Otp string
|
|
Used bool
|
|
UsedAt pgtype.Timestamptz
|
|
CreatedAt pgtype.Timestamptz
|
|
ExpiresAt pgtype.Timestamptz
|
|
}
|
|
|
|
type RefreshToken struct {
|
|
ID int64
|
|
UserID int64
|
|
Token string
|
|
ExpiresAt pgtype.Timestamptz
|
|
CreatedAt pgtype.Timestamptz
|
|
Revoked bool
|
|
}
|
|
|
|
type SupportedOperation struct {
|
|
ID int64
|
|
Name string
|
|
Description string
|
|
}
|
|
|
|
type Ticket struct {
|
|
ID int64
|
|
Amount pgtype.Int8
|
|
TotalOdds float32
|
|
CreatedAt pgtype.Timestamp
|
|
UpdatedAt pgtype.Timestamp
|
|
}
|
|
|
|
type TicketOutcome struct {
|
|
ID int64
|
|
TicketID int64
|
|
EventID int64
|
|
OddID int64
|
|
}
|
|
|
|
type TicketWithOutcome struct {
|
|
ID int64
|
|
Amount pgtype.Int8
|
|
TotalOdds float32
|
|
CreatedAt pgtype.Timestamp
|
|
UpdatedAt pgtype.Timestamp
|
|
Outcomes []TicketOutcome
|
|
}
|
|
|
|
type Transaction struct {
|
|
ID int64
|
|
Amount int64
|
|
BranchID int64
|
|
CashierID int64
|
|
BetID int64
|
|
Type int64
|
|
PaymentOption int64
|
|
FullName string
|
|
PhoneNumber string
|
|
BankCode string
|
|
BeneficiaryName string
|
|
AccountName string
|
|
AccountNumber string
|
|
ReferenceNumber string
|
|
Verified bool
|
|
CreatedAt pgtype.Timestamp
|
|
UpdatedAt pgtype.Timestamp
|
|
}
|
|
|
|
type User struct {
|
|
ID int64
|
|
FirstName string
|
|
LastName string
|
|
Email pgtype.Text
|
|
PhoneNumber pgtype.Text
|
|
Role string
|
|
Password []byte
|
|
EmailVerified bool
|
|
PhoneVerified bool
|
|
CreatedAt pgtype.Timestamptz
|
|
UpdatedAt pgtype.Timestamptz
|
|
SuspendedAt pgtype.Timestamptz
|
|
Suspended bool
|
|
}
|
|
|
|
type Wallet struct {
|
|
ID int64
|
|
Balance int64
|
|
IsWithdraw bool
|
|
IsBettable bool
|
|
IsTransferable bool
|
|
UserID int64
|
|
IsActive bool
|
|
CreatedAt pgtype.Timestamp
|
|
UpdatedAt pgtype.Timestamp
|
|
}
|
|
|
|
type WalletTransfer struct {
|
|
ID int64
|
|
Amount int64
|
|
Type string
|
|
ReceiverWalletID int64
|
|
SenderWalletID pgtype.Int8
|
|
CashierID pgtype.Int8
|
|
Verified bool
|
|
PaymentMethod string
|
|
CreatedAt pgtype.Timestamp
|
|
UpdatedAt pgtype.Timestamp
|
|
}
|