WIP: move to a non-generic test database struct
Co-Authored-By: Mikayla Maki <mikayla@zed.dev> Co-Authored-By: Julia Risley <julia@zed.dev>
This commit is contained in:
parent
11a39226e8
commit
b7294887c7
4 changed files with 1009 additions and 2 deletions
21
crates/collab/src/db2/user.rs
Normal file
21
crates/collab/src/db2/user.rs
Normal file
|
@ -0,0 +1,21 @@
|
|||
use super::UserId;
|
||||
use sea_orm::entity::prelude::*;
|
||||
|
||||
#[derive(Clone, Debug, PartialEq, Eq, DeriveEntityModel)]
|
||||
#[sea_orm(table_name = "users")]
|
||||
pub struct Model {
|
||||
#[sea_orm(primary_key)]
|
||||
pub id: UserId,
|
||||
pub github_login: String,
|
||||
pub github_user_id: Option<i32>,
|
||||
pub email_address: Option<String>,
|
||||
pub admin: bool,
|
||||
pub invite_code: Option<String>,
|
||||
pub invite_count: i32,
|
||||
pub connected_once: bool,
|
||||
}
|
||||
|
||||
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
|
||||
pub enum Relation {}
|
||||
|
||||
impl ActiveModelBehavior for ActiveModel {}
|
Loading…
Add table
Add a link
Reference in a new issue