1
0
mirror of https://github.com/actix/actix-website synced 2025-05-17 07:03:31 +02:00
penysho 39c65361b2
docs: Add documentation supporting native, asynchronous database operations (#580)
* feat: add sea orm documents

* feat: add description for sea orm cli
2025-04-06 19:21:35 +00:00

17 lines
421 B
Rust

//! `SeaORM` Entity, @generated by sea-orm-codegen 1.1.4
use sea_orm::entity::prelude::*;
#[derive(Clone, Debug, PartialEq, DeriveEntityModel, Eq)]
#[sea_orm(table_name = "users")]
pub struct Model {
#[sea_orm(primary_key, auto_increment = false)]
pub id: String,
pub name: String,
}
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
pub enum Relation {}
impl ActiveModelBehavior for ActiveModel {}