Add comments to models.
This commit is contained in:
@@ -21,6 +21,7 @@ class Guild(SQLModel, table=True):
|
|||||||
|
|
||||||
id: int = Field(sa_column=Column(BIGINT(unsigned=True), primary_key=True, nullable=False))
|
id: int = Field(sa_column=Column(BIGINT(unsigned=True), primary_key=True, nullable=False))
|
||||||
name: str = Field(max_length=95)
|
name: str = Field(max_length=95)
|
||||||
|
# deprecated, not currently used.
|
||||||
submission_channel: int = Field(sa_column=Column(BIGINT(unsigned=True)))
|
submission_channel: int = Field(sa_column=Column(BIGINT(unsigned=True)))
|
||||||
verification_channel: int = Field(sa_column=Column(BIGINT(unsigned=True)))
|
verification_channel: int = Field(sa_column=Column(BIGINT(unsigned=True)))
|
||||||
active: bool = Field(default=True)
|
active: bool = Field(default=True)
|
||||||
@@ -170,6 +171,7 @@ class Submission(SQLModel, table=True):
|
|||||||
)
|
)
|
||||||
guild_id: int = Field(sa_column=Column(BIGINT(unsigned=True), nullable=False))
|
guild_id: int = Field(sa_column=Column(BIGINT(unsigned=True), nullable=False))
|
||||||
message_id: int = Field(sa_column=Column(BIGINT(unsigned=True), nullable=False))
|
message_id: int = Field(sa_column=Column(BIGINT(unsigned=True), nullable=False))
|
||||||
|
# Score is stored as a string until converted during submission.
|
||||||
score: str = Field(max_length=30, nullable=False)
|
score: str = Field(max_length=30, nullable=False)
|
||||||
user_id: int = Field(sa_column=Column(BIGINT(unsigned=True), nullable=False))
|
user_id: int = Field(sa_column=Column(BIGINT(unsigned=True), nullable=False))
|
||||||
username: str = Field(max_length=30, nullable=False, primary_key=True)
|
username: str = Field(max_length=30, nullable=False, primary_key=True)
|
||||||
|
|||||||
Reference in New Issue
Block a user