Skip to main content

relay_agent_entity/gen/
users.rs

1//! `SeaORM` Entity, @generated by sea-orm-codegen 1.1.19
2
3use sea_orm::entity::prelude::*;
4use serde::{Deserialize, Serialize};
5
6#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Eq, Serialize, Deserialize)]
7#[sea_orm(table_name = "users")]
8pub struct Model {
9    #[sea_orm(primary_key, auto_increment = false)]
10    pub id: String,
11    pub ed25519: String,
12    pub x25519: String,
13    pub created_at: DateTime,
14    pub expires_at: Option<DateTime>,
15}
16
17#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
18pub enum Relation {}
19
20impl ActiveModelBehavior for ActiveModel {}