Files
datamarket/internal/repository/models.go
2026-03-30 17:17:47 +08:00

101 lines
5.0 KiB
Go

// Code generated by sqlc. DO NOT EDIT.
// versions:
// sqlc v1.30.0
package repository
import (
"github.com/jackc/pgx/v5/pgtype"
)
type BuyerRequest struct {
ID pgtype.UUID `json:"id"`
AssetID pgtype.UUID `json:"asset_id"`
TaskType string `json:"task_type"`
ModelType string `json:"model_type"`
BuyerBudgetMin pgtype.Numeric `json:"buyer_budget_min"`
BuyerBudgetMax pgtype.Numeric `json:"buyer_budget_max"`
PrivacyRequirement pgtype.Text `json:"privacy_requirement"`
UsagePurpose pgtype.Text `json:"usage_purpose"`
RequestNote pgtype.Text `json:"request_note"`
RequestStatus string `json:"request_status"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
}
type DataAsset struct {
ID pgtype.UUID `json:"id"`
AssetName string `json:"asset_name"`
AssetType string `json:"asset_type"`
Domain string `json:"domain"`
ApplicationScene pgtype.Text `json:"application_scene"`
DataDescription string `json:"data_description"`
DataScale string `json:"data_scale"`
CollectionMethod string `json:"collection_method"`
LabelingStatus pgtype.Text `json:"labeling_status"`
UpdateFrequency pgtype.Text `json:"update_frequency"`
PrivacyLevel string `json:"privacy_level"`
PermissionMode string `json:"permission_mode"`
SupportsValidation bool `json:"supports_validation"`
SellerExpectedPriceMin pgtype.Numeric `json:"seller_expected_price_min"`
SellerExpectedPriceMax pgtype.Numeric `json:"seller_expected_price_max"`
QualityLevel pgtype.Text `json:"quality_level"`
ScarcityLevel pgtype.Text `json:"scarcity_level"`
BaseValueScore pgtype.Numeric `json:"base_value_score"`
BasePriceMin pgtype.Numeric `json:"base_price_min"`
BasePriceMax pgtype.Numeric `json:"base_price_max"`
AssetStatus string `json:"asset_status"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
}
type Order struct {
ID pgtype.UUID `json:"id"`
AssetID pgtype.UUID `json:"asset_id"`
RequestID pgtype.UUID `json:"request_id"`
PricingID pgtype.UUID `json:"pricing_id"`
ValidationID pgtype.UUID `json:"validation_id"`
AssetName string `json:"asset_name"`
CurrentPrice pgtype.Numeric `json:"current_price"`
NegotiationMin pgtype.Numeric `json:"negotiation_min"`
NegotiationMax pgtype.Numeric `json:"negotiation_max"`
ValidationUsed bool `json:"validation_used"`
DeliveryMode string `json:"delivery_mode"`
OrderStatus string `json:"order_status"`
OrderCreatedAt pgtype.Timestamptz `json:"order_created_at"`
OrderUpdatedAt pgtype.Timestamptz `json:"order_updated_at"`
}
type PricingResult struct {
ID pgtype.UUID `json:"id"`
AssetID pgtype.UUID `json:"asset_id"`
RequestID pgtype.UUID `json:"request_id"`
ScenarioValueScore pgtype.Numeric `json:"scenario_value_score"`
ScenarioPriceMin pgtype.Numeric `json:"scenario_price_min"`
ScenarioPriceMax pgtype.Numeric `json:"scenario_price_max"`
SuggestedPrice pgtype.Numeric `json:"suggested_price"`
SuccessProbability pgtype.Numeric `json:"success_probability"`
PricingReason1 pgtype.Text `json:"pricing_reason_1"`
PricingReason2 pgtype.Text `json:"pricing_reason_2"`
PricingReason3 pgtype.Text `json:"pricing_reason_3"`
VerificationSuggestion pgtype.Text `json:"verification_suggestion"`
PricingStatus string `json:"pricing_status"`
CreatedAt pgtype.Timestamptz `json:"created_at"`
UpdatedAt pgtype.Timestamptz `json:"updated_at"`
}
type Validation struct {
ID pgtype.UUID `json:"id"`
AssetID pgtype.UUID `json:"asset_id"`
RequestID pgtype.UUID `json:"request_id"`
ValidationType pgtype.Text `json:"validation_type"`
ValidationRequested bool `json:"validation_requested"`
ValidationStatus string `json:"validation_status"`
ValidationSignal pgtype.Text `json:"validation_signal"`
ValidationScore pgtype.Numeric `json:"validation_score"`
RiskWarning pgtype.Text `json:"risk_warning"`
ContinueRecommendation pgtype.Text `json:"continue_recommendation"`
ValidationCreatedAt pgtype.Timestamptz `json:"validation_created_at"`
ValidationFinishedAt pgtype.Timestamptz `json:"validation_finished_at"`
}