Spaces:
Sleeping
Sleeping
Upload app/models/settings.py
Browse files- app/models/settings.py +13 -0
app/models/settings.py
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from sqlalchemy import Column, Integer, String
|
| 2 |
+
from app.db.base import Base
|
| 3 |
+
|
| 4 |
+
class StoreSettings(Base):
|
| 5 |
+
__tablename__ = "store_settings"
|
| 6 |
+
|
| 7 |
+
id = Column(Integer, primary_key=True, index=True)
|
| 8 |
+
store_name = Column(String, default="أفق")
|
| 9 |
+
primary_color = Column(String, default="#046c4e")
|
| 10 |
+
secondary_color = Column(String, default="#d97706")
|
| 11 |
+
logo_url = Column(String, default="/logo.png")
|
| 12 |
+
contact_email = Column(String, nullable=True)
|
| 13 |
+
contact_phone = Column(String, nullable=True)
|