mirror of
https://github.com/cssgunc/compass.git
synced 2025-04-06 20:50:17 -04:00
further changes to tags and filenames
This commit is contained in:
parent
23e4e22fa6
commit
8f3de19c6d
|
@ -4,9 +4,10 @@ from typing import List
|
|||
from datetime import datetime
|
||||
from typing import Optional
|
||||
from .tag_model import Tag
|
||||
from .resource_model import Resource
|
||||
|
||||
|
||||
class ResourceTag(BaseModel):
|
||||
class ResourceTag(Resource, BaseModel):
|
||||
id: int | None = None
|
||||
resourceid: int | None = None
|
||||
tagid: Tag
|
||||
|
|
|
@ -7,7 +7,7 @@ from .enum_for_models import UserTypeEnum, ProgramTypeEnum
|
|||
|
||||
|
||||
class User(BaseModel):
|
||||
id: int
|
||||
id: int | None = None
|
||||
username: str = Field(..., description="The username of the user")
|
||||
email: str = Field(..., description="The e-mail of the user")
|
||||
experience: int = Field(..., description="Years of Experience of the User")
|
Loading…
Reference in New Issue
Block a user