66 lines
2.2 KiB
Go
66 lines
2.2 KiB
Go
// Code generated by sqlc. DO NOT EDIT.
|
|
// versions:
|
|
// sqlc v1.31.1
|
|
|
|
package db
|
|
|
|
import (
|
|
"github.com/jackc/pgx/v5/pgtype"
|
|
)
|
|
|
|
type Order struct {
|
|
ID int64 `json:"id"`
|
|
AccountID pgtype.Int8 `json:"account_id"`
|
|
Status string `json:"status"`
|
|
CreatedAt pgtype.Timestamptz `json:"created_at"`
|
|
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
|
|
}
|
|
|
|
type Product struct {
|
|
ID int64 `json:"id"`
|
|
Sku string `json:"sku"`
|
|
Name string `json:"name"`
|
|
ItemType pgtype.Text `json:"item_type"`
|
|
CreatedAt pgtype.Timestamptz `json:"created_at"`
|
|
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
|
|
}
|
|
|
|
type Scan struct {
|
|
ID int64 `json:"id"`
|
|
TagID int64 `json:"tag_id"`
|
|
ScannedAt pgtype.Timestamptz `json:"scanned_at"`
|
|
Lat pgtype.Float8 `json:"lat"`
|
|
Lng pgtype.Float8 `json:"lng"`
|
|
LocationShared bool `json:"location_shared"`
|
|
ScannerPhone pgtype.Text `json:"scanner_phone"`
|
|
AlertSent bool `json:"alert_sent"`
|
|
Fingerprint pgtype.Text `json:"fingerprint"`
|
|
}
|
|
|
|
type Tag struct {
|
|
ID int64 `json:"id"`
|
|
TagCode string `json:"tag_code"`
|
|
OwnerID pgtype.Int8 `json:"owner_id"`
|
|
Status string `json:"status"`
|
|
ItemType pgtype.Text `json:"item_type"`
|
|
Description pgtype.Text `json:"description"`
|
|
PhotoUrl pgtype.Text `json:"photo_url"`
|
|
Phone pgtype.Text `json:"phone"`
|
|
Address pgtype.Text `json:"address"`
|
|
Notes pgtype.Text `json:"notes"`
|
|
CreatedAt pgtype.Timestamptz `json:"created_at"`
|
|
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
|
|
SmsEnabled bool `json:"sms_enabled"`
|
|
ProductID pgtype.Int8 `json:"product_id"`
|
|
OrderID pgtype.Int8 `json:"order_id"`
|
|
}
|
|
|
|
type User struct {
|
|
ID int64 `json:"id"`
|
|
Email string `json:"email"`
|
|
PasswordHash string `json:"password_hash"`
|
|
Name pgtype.Text `json:"name"`
|
|
Phone pgtype.Text `json:"phone"`
|
|
CreatedAt pgtype.Timestamptz `json:"created_at"`
|
|
}
|