schema.rs

 1pub mod project {
 2    use sea_query::Iden;
 3
 4    #[derive(Iden)]
 5    pub enum Definition {
 6        #[iden = "projects"]
 7        Table,
 8        Id,
 9        RoomId,
10        HostUserId,
11        HostConnectionId,
12    }
13}
14
15pub mod worktree {
16    use sea_query::Iden;
17
18    #[derive(Iden)]
19    pub enum Definition {
20        #[iden = "worktrees"]
21        Table,
22        Id,
23        ProjectId,
24        AbsPath,
25        RootName,
26        Visible,
27        ScanId,
28        IsComplete,
29    }
30}
31
32pub mod room_participant {
33    use sea_query::Iden;
34
35    #[derive(Iden)]
36    pub enum Definition {
37        #[iden = "room_participants"]
38        Table,
39        RoomId,
40        UserId,
41        AnsweringConnectionId,
42    }
43}