|
@@ -26,58 +26,58 @@ class CategoryTreeWeight(Base):
|
|
|
Integer, nullable=False, default=0, comment="挂载需求词数量"
|
|
Integer, nullable=False, default=0, comment="挂载需求词数量"
|
|
|
)
|
|
)
|
|
|
|
|
|
|
|
- ext_pop_avg: Mapped[Decimal] = mapped_column(
|
|
|
|
|
- Numeric(16, 8), nullable=False, default=Decimal("0"), comment="外部热度-加权平均分"
|
|
|
|
|
|
|
+ ext_pop_avg: Mapped[Decimal | None] = mapped_column(
|
|
|
|
|
+ Numeric(16, 8), nullable=True, comment="外部热度-加权平均分"
|
|
|
)
|
|
)
|
|
|
ext_pop_count: Mapped[int] = mapped_column(
|
|
ext_pop_count: Mapped[int] = mapped_column(
|
|
|
Integer, nullable=False, default=0, comment="外部热度-样本数"
|
|
Integer, nullable=False, default=0, comment="外部热度-样本数"
|
|
|
)
|
|
)
|
|
|
|
|
|
|
|
- plat_sust_pop_avg: Mapped[Decimal] = mapped_column(
|
|
|
|
|
- Numeric(16, 8), nullable=False, default=Decimal("0"), comment="平台持续热度-加权平均分"
|
|
|
|
|
|
|
+ plat_sust_pop_avg: Mapped[Decimal | None] = mapped_column(
|
|
|
|
|
+ Numeric(16, 8), nullable=True, comment="平台持续热度-加权平均分"
|
|
|
)
|
|
)
|
|
|
plat_sust_pop_count: Mapped[int] = mapped_column(
|
|
plat_sust_pop_count: Mapped[int] = mapped_column(
|
|
|
Integer, nullable=False, default=0, comment="平台持续热度-样本数"
|
|
Integer, nullable=False, default=0, comment="平台持续热度-样本数"
|
|
|
)
|
|
)
|
|
|
|
|
|
|
|
- plat_ly_pop_avg: Mapped[Decimal] = mapped_column(
|
|
|
|
|
- Numeric(16, 8), nullable=False, default=Decimal("0"), comment="平台去年同期-加权平均分"
|
|
|
|
|
|
|
+ plat_ly_pop_avg: Mapped[Decimal | None] = mapped_column(
|
|
|
|
|
+ Numeric(16, 8), nullable=True, comment="平台去年同期-加权平均分"
|
|
|
)
|
|
)
|
|
|
plat_ly_pop_count: Mapped[int] = mapped_column(
|
|
plat_ly_pop_count: Mapped[int] = mapped_column(
|
|
|
Integer, nullable=False, default=0, comment="平台去年同期-样本数"
|
|
Integer, nullable=False, default=0, comment="平台去年同期-样本数"
|
|
|
)
|
|
)
|
|
|
|
|
|
|
|
- recent_pop_avg: Mapped[Decimal] = mapped_column(
|
|
|
|
|
- Numeric(16, 8), nullable=False, default=Decimal("0"), comment="近期热度-加权平均分"
|
|
|
|
|
|
|
+ recent_pop_avg: Mapped[Decimal | None] = mapped_column(
|
|
|
|
|
+ Numeric(16, 8), nullable=True, comment="近期热度-加权平均分"
|
|
|
)
|
|
)
|
|
|
recent_pop_count: Mapped[int] = mapped_column(
|
|
recent_pop_count: Mapped[int] = mapped_column(
|
|
|
Integer, nullable=False, default=0, comment="近期热度-样本数"
|
|
Integer, nullable=False, default=0, comment="近期热度-样本数"
|
|
|
)
|
|
)
|
|
|
|
|
|
|
|
- ext_pop_score: Mapped[Decimal] = mapped_column(
|
|
|
|
|
- Numeric(16, 8), nullable=False, default=Decimal("0"), comment="外部热度-排名归一化分"
|
|
|
|
|
|
|
+ ext_pop_score: Mapped[Decimal | None] = mapped_column(
|
|
|
|
|
+ Numeric(16, 8), nullable=True, comment="外部热度-排名归一化分"
|
|
|
)
|
|
)
|
|
|
- plat_sust_pop_score: Mapped[Decimal] = mapped_column(
|
|
|
|
|
- Numeric(16, 8), nullable=False, default=Decimal("0"), comment="平台持续热度-排名归一化分"
|
|
|
|
|
|
|
+ plat_sust_pop_score: Mapped[Decimal | None] = mapped_column(
|
|
|
|
|
+ Numeric(16, 8), nullable=True, comment="平台持续热度-排名归一化分"
|
|
|
)
|
|
)
|
|
|
- plat_ly_pop_score: Mapped[Decimal] = mapped_column(
|
|
|
|
|
- Numeric(16, 8), nullable=False, default=Decimal("0"), comment="平台去年同期-排名归一化分"
|
|
|
|
|
|
|
+ plat_ly_pop_score: Mapped[Decimal | None] = mapped_column(
|
|
|
|
|
+ Numeric(16, 8), nullable=True, comment="平台去年同期-排名归一化分"
|
|
|
)
|
|
)
|
|
|
- recent_pop_score: Mapped[Decimal] = mapped_column(
|
|
|
|
|
- Numeric(16, 8), nullable=False, default=Decimal("0"), comment="近期热度-排名归一化分"
|
|
|
|
|
|
|
+ recent_pop_score: Mapped[Decimal | None] = mapped_column(
|
|
|
|
|
+ Numeric(16, 8), nullable=True, comment="近期热度-排名归一化分"
|
|
|
)
|
|
)
|
|
|
- total_score: Mapped[Decimal] = mapped_column(
|
|
|
|
|
- Numeric(16, 8), nullable=False, default=Decimal("0"), comment="四维排名分之和"
|
|
|
|
|
|
|
+ total_score: Mapped[Decimal | None] = mapped_column(
|
|
|
|
|
+ Numeric(16, 8), nullable=True, comment="四维排名分之和"
|
|
|
)
|
|
)
|
|
|
|
|
|
|
|
- real_rov_7d_avg: Mapped[Decimal] = mapped_column(
|
|
|
|
|
- Numeric(16, 8), nullable=False, default=Decimal("0"), comment="近7日真实ROV-加权平均分"
|
|
|
|
|
|
|
+ real_rov_7d_avg: Mapped[Decimal | None] = mapped_column(
|
|
|
|
|
+ Numeric(16, 8), nullable=True, comment="近7日真实ROV-加权平均分"
|
|
|
)
|
|
)
|
|
|
real_rov_7d_count: Mapped[int] = mapped_column(
|
|
real_rov_7d_count: Mapped[int] = mapped_column(
|
|
|
Integer, nullable=False, default=0, comment="近7日真实ROV-样本数"
|
|
Integer, nullable=False, default=0, comment="近7日真实ROV-样本数"
|
|
|
)
|
|
)
|
|
|
- real_vov_7d_avg: Mapped[Decimal] = mapped_column(
|
|
|
|
|
- Numeric(16, 8), nullable=False, default=Decimal("0"), comment="近7日真实VOV-加权平均分"
|
|
|
|
|
|
|
+ real_vov_7d_avg: Mapped[Decimal | None] = mapped_column(
|
|
|
|
|
+ Numeric(16, 8), nullable=True, comment="近7日真实VOV-加权平均分"
|
|
|
)
|
|
)
|
|
|
real_vov_7d_count: Mapped[int] = mapped_column(
|
|
real_vov_7d_count: Mapped[int] = mapped_column(
|
|
|
Integer, nullable=False, default=0, comment="近7日真实VOV-样本数"
|
|
Integer, nullable=False, default=0, comment="近7日真实VOV-样本数"
|