use sea_orm::entity::prelude::*; use time::OffsetDateTime; use uuid::Uuid; #[sea_orm::model] #[derive(Clone, Debug, PartialEq, Eq, DeriveEntityModel)] #[sea_orm(table_name = "chat_outbound_webhook")] pub struct Model { #[sea_orm(primary_key, auto_increment = false)] pub id: Uuid, #[sea_orm(indexed)] pub room_id: Uuid, pub user_id: i64, pub name: String, pub url: String, pub secret: String, #[sea_orm(default_value = "false")] pub disabled: bool, pub last_status: Option, pub last_used_at: Option, pub created_at: OffsetDateTime, pub updated_at: OffsetDateTime, } impl ActiveModelBehavior for ActiveModel {}