Files
video-gen/video-gen-api/app/models/industry_config.py
T
2026-05-25 17:08:18 +08:00

18 lines
773 B
Python

from sqlalchemy import Boolean, Integer, String, Text
from sqlalchemy.orm import Mapped, mapped_column
from app.models.base import Base, TimestampMixin
class IndustryConfig(Base, TimestampMixin):
__tablename__ = "industry_configs"
id: Mapped[str] = mapped_column(String(32), primary_key=True)
key: Mapped[str] = mapped_column(String(64), unique=True, nullable=False)
label: Mapped[str] = mapped_column(String(64), nullable=False)
icon: Mapped[str] = mapped_column(String(64), default="")
description: Mapped[str] = mapped_column(String(256), default="")
skills: Mapped[str] = mapped_column(Text, default="[]")
is_active: Mapped[bool] = mapped_column(Boolean, default=True)
sort_order: Mapped[int] = mapped_column(Integer, default=0)