25 行
710 B
Python
25 行
710 B
Python
from __future__ import annotations
|
|
from sqlalchemy import Column, Integer, String, Text, Boolean
|
|
|
|
from app.database import Base
|
|
|
|
|
|
class ContactChannel(Base):
|
|
__tablename__ = "contact_channels"
|
|
|
|
id = Column(Integer, primary_key=True, autoincrement=True)
|
|
type = Column(String(50), nullable=False)
|
|
label = Column(String(100), nullable=False)
|
|
value = Column(String(500))
|
|
qr_image = Column(String(500))
|
|
is_primary = Column(Boolean, default=False)
|
|
description = Column(Text)
|
|
sort_order = Column(Integer, default=0)
|
|
|
|
|
|
class ContactConfig(Base):
|
|
__tablename__ = "contact_config"
|
|
|
|
id = Column(Integer, primary_key=True, autoincrement=True)
|
|
security_notice = Column(Text)
|