You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
621 B
Rust
25 lines
621 B
Rust
//! SeaORM Entity. Generated by sea-orm-codegen 0.7.0
|
|
|
|
use sea_orm::entity::prelude::*;
|
|
|
|
#[derive(Clone, Debug, PartialEq, DeriveEntityModel)]
|
|
#[sea_orm(table_name = "ephemeral_messages")]
|
|
pub struct Model {
|
|
#[sea_orm(primary_key, auto_increment = false)]
|
|
pub channel_id: i64,
|
|
#[sea_orm(primary_key, auto_increment = false)]
|
|
pub message_id: i64,
|
|
pub timeout: DateTimeWithTimeZone,
|
|
}
|
|
|
|
#[derive(Copy, Clone, Debug, EnumIter)]
|
|
pub enum Relation {}
|
|
|
|
impl RelationTrait for Relation {
|
|
fn def(&self) -> RelationDef {
|
|
panic!("No RelationDef")
|
|
}
|
|
}
|
|
|
|
impl ActiveModelBehavior for ActiveModel {}
|