Documentation ¶
Index ¶
- type Category
- type DBTX
- type NullProductStatus
- type NullUserStatus
- type Product
- type ProductAttribute
- type ProductPricing
- type ProductRating
- type ProductStatus
- type Querier
- type Queries
- type Role
- type SellerStore
- type Session
- type Sku
- type SkuPricing
- type SkuProductAttributeValue
- type Store
- type User
- type UserRole
- type UserStatus
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NullProductStatus ¶
type NullProductStatus struct { ProductStatus ProductStatus Valid bool // Valid is true if ProductStatus is not NULL }
func (*NullProductStatus) Scan ¶
func (ns *NullProductStatus) Scan(value interface{}) error
Scan implements the Scanner interface.
type NullUserStatus ¶
type NullUserStatus struct { UserStatus UserStatus Valid bool // Valid is true if UserStatus is not NULL }
func (*NullUserStatus) Scan ¶
func (ns *NullUserStatus) Scan(value interface{}) error
Scan implements the Scanner interface.
type Product ¶
type Product struct { ID int64 StoreID int32 CategoryID int32 Name string Brand *string Slug string ShortInfo []string ImageUrls []byte Specs []byte Status ProductStatus CreatedAt pgtype.Timestamptz UpdatedAt pgtype.Timestamptz }
type ProductAttribute ¶
type ProductPricing ¶
type ProductRating ¶
type ProductStatus ¶
type ProductStatus string
const ( ProductStatusDraft ProductStatus = "Draft" ProductStatusPendingApproval ProductStatus = "PendingApproval" ProductStatusActive ProductStatus = "Active" )
func (*ProductStatus) Scan ¶
func (e *ProductStatus) Scan(src interface{}) error
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) CreateStore ¶
type SellerStore ¶
type SellerStore struct { ID int32 PublicID string SellerID int64 Name string Description string CreatedAt pgtype.Timestamptz UpdatedAt pgtype.Timestamptz }
type Sku ¶
type Sku struct { ID int64 ProductID int64 Sku string QuantityInStock int32 HasSepPricing bool ImageRefs []int16 CreatedAt pgtype.Timestamptz UpdatedAt pgtype.Timestamptz }
type SkuPricing ¶
type User ¶
type User struct { ID int64 Email string Password string PhoneNumber *string FullName string Status UserStatus Otp *string OtpExpiry *int64 CreatedAt pgtype.Timestamptz UpdatedAt pgtype.Timestamptz }
type UserStatus ¶
type UserStatus string
const ( UserStatusBlocked UserStatus = "Blocked" UserStatusRegistrationPending UserStatus = "RegistrationPending" UserStatusActive UserStatus = "Active" UserStatusInactice UserStatus = "Inactice" )
func (*UserStatus) Scan ¶
func (e *UserStatus) Scan(src interface{}) error
Click to show internal directories.
Click to hide internal directories.