File size: 798 Bytes
b2be963
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
from sqlalchemy import Column, Integer, String, JSON
from app.db.base import Base

class StoreSettings(Base):
    __tablename__ = "store_settings"
    
    id = Column(Integer, primary_key=True, index=True)
    store_name = Column(String, default="أفق")
    primary_color = Column(String, default="#046c4e")
    secondary_color = Column(String, default="#d97706")
    logo_url = Column(String, default="/logo.png")
    contact_email = Column(String, nullable=True)
    contact_phone = Column(String, nullable=True)
    global_discount = Column(Integer, default=0) # Percentage to apply globally
    crypto_networks = Column(JSON, default=list) # List of dicts representing CryptoNetwork
    bank_accounts = Column(JSON, default=list)   # List of dicts representing BankAccount