style: renaming parameter, ban_time -> banned_since
This commit is contained in:
parent
26f528819e
commit
c2b5f6568f
3 changed files with 3 additions and 3 deletions
|
@ -3,6 +3,6 @@ CREATE TABLE guild_bans (
|
|||
guild_uuid uuid NOT NULL REFERENCES guilds(uuid) ON DELETE CASCADE,
|
||||
user_uuid uuid NOT NULL REFERENCES users(uuid),
|
||||
reason VARCHAR(200) DEFAULT NULL,
|
||||
ban_time TIMESTAMPTZ NOT NULL DEFAULT NOW(),
|
||||
banned_since TIMESTAMPTZ NOT NULL DEFAULT NOW(),
|
||||
PRIMARY KEY (user_uuid, guild_uuid)
|
||||
);
|
||||
|
|
|
@ -13,7 +13,7 @@ pub struct GuildBan {
|
|||
pub guild_uuid: Uuid,
|
||||
pub user_uuid: Uuid,
|
||||
pub reason: Option<String>,
|
||||
pub ban_time: chrono::DateTime<chrono::Utc>,
|
||||
pub banned_since: chrono::DateTime<chrono::Utc>,
|
||||
}
|
||||
|
||||
impl GuildBan {
|
||||
|
|
|
@ -53,7 +53,7 @@ diesel::table! {
|
|||
user_uuid -> Uuid,
|
||||
#[max_length = 200]
|
||||
reason -> Nullable<Varchar>,
|
||||
ban_time -> Timestamptz,
|
||||
banned_since -> Timestamptz,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue