remodeling table models and migration to postgres

This commit is contained in:
2025-08-23 09:16:37 +02:00
parent fe2ccbe368
commit 648448ebdc
20 changed files with 166 additions and 401 deletions
+26
View File
@@ -0,0 +1,26 @@
from sqlmodel import SQLModel
from enum import Enum
class UserRole(str, Enum):
ADMIN = "admin"
WRITE = "write"
READ_ONLY = "read_only"
class TransactionType(str, Enum):
SALE = "sell"
PURCHASE = "buy"
CREDIT = "credit"
class TransactionStatus(str, Enum):
UNPAID = "unpaid"
PARTIALLY_PAID = "partially_paid"
PAID = "paid"
CANCELLED = 'cancelled'
class PartnerType(str, Enum):
CLIENT = "client"
SUPPLIER = "supplier"