15 lines
283 B
Python
15 lines
283 B
Python
|
from typing import Optional
|
||
|
from sqlmodel import Field, SQLModel
|
||
|
import datetime
|
||
|
|
||
|
|
||
|
class BlacklistBase(SQLModel):
|
||
|
handle: str
|
||
|
|
||
|
|
||
|
class Blacklist(BlacklistBase, table=True):
|
||
|
id: int | None = Field(default=None, primary_key=True)
|
||
|
|
||
|
|
||
|
class BlacklistCreate(BlacklistBase):
|
||
|
pass
|