File tree Expand file tree Collapse file tree 3 files changed +5
-0
lines changed
Expand file tree Collapse file tree 3 files changed +5
-0
lines changed Original file line number Diff line number Diff line change 11from datetime import datetime
2+
23from pydantic import BaseModel , Field
34
5+
46class SchemaDefinition (BaseModel ):
57 id : str = Field (..., description = "Unique identifier for the schema" )
68 name : str = Field (
Original file line number Diff line number Diff line change 11
22from datetime import datetime
3+
34from bson import ObjectId
45from database import schemas_collection
56from datamodel import SchemaDefinition , UpdateSchema # ✅ Updated import
Original file line number Diff line number Diff line change 1414├── utils/ # Helpers
1515"""
1616from datetime import datetime
17+
1718from pydantic import BaseModel , Field
1819
20+
1921class SchemaDefinition (BaseModel ):
2022 id : str = Field (..., description = "Unique identifier for the schema" )
2123 name : str = Field (..., description = "Human-readable name of the schema" , min_length = 3 )
You can’t perform that action at this time.
0 commit comments