I have a model, Users
class Users(ormar.Model):
class Meta(BaseMeta):
tablename = "users"
id: int = ormar.Integer(primary_key=True)
first_name: str = ormar.String(max_length=255)
middle_name: Union[str, None] = ormar.String(nullable=True, max_length=255)
last_name: Union[str, None] = ormar.String(nullable=True, max_length=255)
i wish to add a url profile_image
and I want the URL validation to be done at database level instead of API level
Is it possbile to do the same? without switching to SQLAlchemy?
I have tried lookup the docs, but could not find anything helpful.