create and list user examples

This commit is contained in:
Gabor Körber
2023-12-21 21:00:05 +01:00
parent fca4582084
commit 5ac172aff8
7 changed files with 35 additions and 25 deletions

View File

@@ -1 +1,5 @@
pub mod user;
pub mod user;
pub mod permission;
pub use user::Entity as User;
pub use permission::Entity as Permission;

View File

@@ -9,7 +9,7 @@ pub struct Model {
pub id: i32,
pub username: String,
#[sea_orm(column_type = "Text")]
pub description: String,
pub description: Option<String>,
}
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]