2024-03-25 21:18:12 +01:00
|
|
|
use sea_orm::entity::prelude::*;
|
|
|
|
|
|
|
|
#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Eq)]
|
|
|
|
#[sea_orm(table_name = "application")]
|
|
|
|
pub struct Model {
|
|
|
|
#[sea_orm(primary_key)]
|
|
|
|
pub id: i64,
|
|
|
|
|
|
|
|
pub private_key: String,
|
|
|
|
pub public_key: String,
|
2024-03-26 00:48:13 +01:00
|
|
|
|
|
|
|
pub created: ChronoDateTimeUtc,
|
2024-03-25 21:18:12 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
|
|
|
|
pub enum Relation {}
|
|
|
|
|
|
|
|
impl ActiveModelBehavior for ActiveModel {}
|