package model import "time" type PlanPreview struct { ID string `db:"id" json:"id"` AccountID string `db:"account_id" json:"account_id"` CandidateRevisionID string `db:"candidate_revision_id" json:"candidate_revision_id"` CandidateVersion int64 `db:"candidate_version" json:"candidate_version"` Quantity int64 `db:"quantity" json:"quantity,string"` FeeBudgetMinor int64 `db:"fee_budget_minor" json:"-"` ReservedMinor int64 `db:"reserved_minor" json:"-"` ReservedAmount string `json:"reserved_amount"` FeeBudget string `json:"fee_budget"` ExpiresAt time.Time `db:"expires_at" json:"expires_at"` CreatedAt time.Time `db:"created_at" json:"created_at"` } func (PlanPreview) TableName() string { return "veyra_plan_preview" } type TradePlan struct { ID string `db:"id" json:"id"` PreviewID string `db:"preview_id" json:"preview_id"` AccountID string `db:"account_id" json:"account_id"` CandidateRevisionID string `db:"candidate_revision_id" json:"candidate_revision_id"` CandidateVersion int64 `db:"candidate_version" json:"candidate_version"` Quantity int64 `db:"quantity" json:"quantity,string"` FilledQuantity int64 `db:"filled_quantity" json:"filled_quantity,string"` FeeBudgetMinor int64 `db:"fee_budget_minor" json:"-"` ReservedMinor int64 `db:"reserved_minor" json:"-"` ReservedAmount string `json:"reserved_amount"` Status string `db:"status" json:"status"` Version int64 `db:"version" json:"version"` ValidUntil time.Time `db:"valid_until" json:"valid_until"` CreatedAt time.Time `db:"created_at" json:"created_at"` UpdatedAt time.Time `db:"updated_at" json:"updated_at"` CandidateContent CandidateContent `json:"candidate_content"` } func (TradePlan) TableName() string { return "veyra_trade_plan" } type PlanBudget struct { AccountID string `json:"account_id"` CashBalance string `json:"cash_balance"` ReservedAmount string `json:"reserved_amount"` AvailableAmount string `json:"available_amount"` }