create and list user examples
This commit is contained in:
@@ -1 +1,5 @@
|
||||
pub mod user;
|
||||
pub mod user;
|
||||
pub mod permission;
|
||||
|
||||
pub use user::Entity as User;
|
||||
pub use permission::Entity as Permission;
|
||||
|
||||
@@ -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)]
|
||||
|
||||
Reference in New Issue
Block a user