first commit

This commit is contained in:
2022-08-04 17:38:10 +08:00
commit 79296a634a
14 changed files with 3312 additions and 0 deletions

5
src/web/model/mod.rs Normal file
View File

@ -0,0 +1,5 @@
//! SeaORM Entity. Generated by sea-orm-codegen 0.9.1
pub mod prelude;
pub mod user;

3
src/web/model/prelude.rs Normal file
View File

@ -0,0 +1,3 @@
//! SeaORM Entity. Generated by sea-orm-codegen 0.9.1
pub use super::user::Entity as User;

24
src/web/model/user.rs Normal file
View File

@ -0,0 +1,24 @@
//! SeaORM Entity. Generated by sea-orm-codegen 0.9.1
use sea_orm::entity::prelude::*;
use serde::{Deserialize, Serialize};
#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Serialize, Deserialize)]
#[sea_orm(table_name = "user")]
pub struct Model {
#[sea_orm(primary_key)]
pub id: i32,
pub name: String,
pub password: String,
}
#[derive(Copy, Clone, Debug, EnumIter)]
pub enum Relation {}
impl RelationTrait for Relation {
fn def(&self) -> RelationDef {
panic!("No RelationDef")
}
}
impl ActiveModelBehavior for ActiveModel {}