Files
datamarket/internal/repository/models.go
2026-04-07 21:21:18 +08:00

146 lines
7.1 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"`
UserID pgtype.UUID `json:"user_id"`
}
type Config struct {
ID int32 `json:"id"`
JwtAlg string `json:"Jwt.Alg"`
JwtSignKey string `json:"Jwt.SignKey"`
JwtVerifyKye pgtype.Text `json:"Jwt.VerifyKye"`
}
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"`
UserID pgtype.UUID `json:"user_id"`
// 智能助手对当前资产的简短画像总结
AgentAssetSummary pgtype.Text `json:"agent_asset_summary"`
// 推荐的适用任务列表
AgentRecommendedTasks []byte `json:"agent_recommended_tasks"`
// 当前资产更适合的权限与风险建议
AgentRiskPerMissionAdvice pgtype.Text `json:"agent_risk_per_mission_advice"`
// 为什么该资产当前基础价值较高/中/低
AgentAssetExplanation pgtype.Text `json:"agent_asset_explanation"`
}
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"`
UserID pgtype.UUID `json:"user_id"`
}
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"`
// 解释当前数据与任务的匹配关系
AgentTaskMatchExplanation pgtype.Text `json:"agent_task_match_explanation"`
// 解释当前隐私风险与权限建议
AgentRiskAdvice pgtype.Text `json:"agent_risk_advice"`
// 根据预算给出的建议
AgentBudgetAdvice pgtype.Text `json:"agent_budget_advice"`
// 建议接下来做什么
AgentNextAction pgtype.Text `json:"agent_next_action"`
}
type User struct {
ID pgtype.UUID `json:"id"`
Username string `json:"username"`
Password string `json:"password"`
Role string `json:"role"`
DisplayName string `json:"display_name"`
AccountStatus string `json:"account_status"`
LastLoginAt pgtype.Timestamptz `json:"last_login_at"`
CreatedAt pgtype.Timestamptz `json:"created_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"`
// 对当前验证结果的自然语言解释
AgentValidationExplanation pgtype.Text `json:"agent_validation_explanation"`
// 对是否继续成交的建议
AgentContinueTradeAdvice pgtype.Text `json:"agent_continue_trade_advice"`
// 对交付方式的建议
AgentDeliveryAdvice pgtype.Text `json:"agent_delivery_advice"`
// 对后续交易的风险提示
AgentRiskNotice pgtype.Text `json:"agent_risk_notice"`
}