Make some db tests pass against the new sea-orm implementation

This commit is contained in:
Antonio Scandurra 2022-11-30 12:06:25 +01:00
parent b7294887c7
commit d9a892a423
9 changed files with 849 additions and 711 deletions

View file

@ -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)]