Spaces:
Running
Running
File size: 610 Bytes
3f61e65 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
from app.core.database import Base, engine
from app.models.models import BetaApplication
from pydantic import BaseModel, Field
from datetime import datetime
# Create the tables
Base.metadata.create_all(engine)
print("Tables created successfully.")
class BetaApplicationSchema(BaseModel):
id: str
email: str
company: str
useCase: str = Field(..., alias="use_case")
status: str
createdAt: datetime = Field(..., alias="created_at")
updatedAt: datetime | None = Field(None, alias="updated_at")
class Config:
orm_mode = True
allow_population_by_field_name = True |