Make some db tests pass against the new sea-orm implementation
This commit is contained in:
parent
b7294887c7
commit
d9a892a423
9 changed files with 849 additions and 711 deletions
|
@ -1,7 +1,7 @@
|
|||
use super::UserId;
|
||||
use sea_orm::entity::prelude::*;
|
||||
|
||||
#[derive(Clone, Debug, PartialEq, Eq, DeriveEntityModel)]
|
||||
#[derive(Clone, Debug, Default, PartialEq, Eq, DeriveEntityModel)]
|
||||
#[sea_orm(table_name = "users")]
|
||||
pub struct Model {
|
||||
#[sea_orm(primary_key)]
|
||||
|
@ -13,6 +13,7 @@ pub struct Model {
|
|||
pub invite_code: Option<String>,
|
||||
pub invite_count: i32,
|
||||
pub connected_once: bool,
|
||||
pub metrics_id: Uuid,
|
||||
}
|
||||
|
||||
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue