ifixkart-backend/alter_tables2.py
adithiyan 10bfba7d58 feat: add warranties, refunds, notifications, CRM calendar, system config & delivery modules
- New models: WarrantyModel, WalletModel, SystemConfigModel
- New schemas: WarrantySchema, RefundSchema, SystemConfig, CrmTaskCalendar, NotificationTemplate, NotificationGateway, RepairErp, ReviewModeration, InventoryPos, MultiDashboard, BillingFinance
- New services: WarrantyService, RefundService, CrmService, CrmTaskCalendarService, DeliveryService, EmailTemplateService, InventoryPosService, MultiDashboardService, NotificationGatewayService, RepairErpService, ReviewModerationService, SystemConfigService, TemplateService, CreditService
- Updated routers: AdminOrder, BillingFinance, Cart, Catalog, Checkout, Crm, InventoryPos, NotificationGateway, RolePermission, ServiceJob, Settings, Storefront, UserCreation
- Updated models: Inventory, Notification, Order, Product, Service, Setting, SystemConfig, User
- Updated core: database init, invoice generator, main app
- Added WarrantyRouter with full CRUD and claim flow
2026-10-13 22:05:16 +05:30

16 lines
515 B
Python

from sqlalchemy import create_engine
from app.models.RoleNotificationSettingModel import RoleNotificationSetting
from app.core.config.Config import settings
engines = [
create_engine(settings.CORE_DATABASE_URL),
create_engine(settings.CRM_DATABASE_URL),
create_engine(settings.COMMERCE_DATABASE_URL)
]
for engine in engines:
try:
RoleNotificationSetting.metadata.create_all(engine)
print("Created role_notification_settings in", engine.url)
except Exception as e:
pass