discord-webhook-proxy 1.0.0

DiscordWebhookProxy is a powerful Discord proxy service designed for Roblox, built to prevent abuse and provide secure relaying. It offers complete server management, allowing users to set hardware usage caps and ban abusive users via an intuitive dashboard. Easily deployed with one-click options for Docker, Nix, or Vercel.
Documentation
use super::schema;
use diesel::prelude::*;
use serde_json::Value;
use chrono::{DateTime, Utc};

#[derive(Queryable, Selectable, Debug)]
#[diesel(table_name = schema::webhooks)]
#[diesel(check_for_backend(diesel::pg::Pg))]
pub struct Webhook {
    pub id: i32,
    pub discord_webhook_id: i64,
    pub banned: bool,
}

#[derive(Insertable, Debug)]
#[diesel(table_name = schema::webhooks)]
pub struct newWebhook {
    pub discord_webhook_id: i64,
    pub banned: bool,
}

#[derive(AsChangeset, Debug)]
#[diesel(table_name = schema::webhooks)]
pub struct updateWebhook {
    pub discord_webhook_id: Option<i64>,
    pub banned: Option<bool>,
}

#[derive(Debug, PartialEq, Eq, FromSqlRow, AsExpression)]
#[diesel(sql_type = "Text")]
pub enum Status {
    Pending,
    Completed
}