fin / Models /datamodels.py
shubhayu-64
add: app file
112f52b
raw
history blame contribute delete
273 Bytes
from datetime import datetime
from typing import List, Optional
from uuid import uuid4
from pydantic import BaseModel, Field
class StockNameModel(BaseModel):
name: str = Field(..., min_length=3, max_length=50)
ticker: str = Field(..., min_length=3, max_length=50)