further changes to tags and filenames

This commit is contained in:
CheezyGarlicBread 2024-03-25 19:18:44 -04:00
parent 23e4e22fa6
commit 8f3de19c6d
2 changed files with 3 additions and 2 deletions

View File

@ -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

View File

@ -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")