1
0
mirror of https://github.com/actix/actix-website synced 2025-06-27 15:39:02 +02:00

docs: Add documentation supporting native, asynchronous database operations (#580)

* feat: add sea orm documents

* feat: add description for sea orm cli
This commit is contained in:
penysho
2025-04-07 04:21:35 +09:00
committed by GitHub
parent 2932f90e2b
commit 39c65361b2
8 changed files with 1356 additions and 44 deletions

View File

@ -0,0 +1,16 @@
//! `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 {}