land_core/model/
user_token.rs

1//! `SeaORM` Entity. Generated by sea-orm-codegen 0.11.3
2
3use sea_orm::entity::prelude::*;
4
5#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Eq)]
6#[sea_orm(table_name = "user_token")]
7pub struct Model {
8    #[sea_orm(primary_key)]
9    pub id: i32,
10    pub owner_id: i32,
11    #[sea_orm(unique)]
12    pub token: String,
13    #[sea_orm(unique)]
14    pub uuid: String,
15    pub name: String,
16    pub origin: String,
17    pub expired_at: i32,
18    pub created_at: DateTimeUtc,
19    pub updated_at: DateTimeUtc,
20}
21
22#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
23pub enum Relation {}
24
25impl ActiveModelBehavior for ActiveModel {}