1use crate::db::ProjectId;
2use sea_orm::entity::prelude::*;
3
4#[derive(Clone, Debug, PartialEq, Eq, DeriveEntityModel)]
5#[sea_orm(table_name = "worktree_entries")]
6pub struct Model {
7 #[sea_orm(primary_key)]
8 pub project_id: ProjectId,
9 #[sea_orm(primary_key)]
10 pub worktree_id: i64,
11 #[sea_orm(primary_key)]
12 pub id: i64,
13 pub is_dir: bool,
14 pub path: String,
15 pub inode: i64,
16 pub mtime_seconds: i64,
17 pub mtime_nanos: i32,
18 pub git_status: Option<i64>,
19 pub is_ignored: bool,
20 pub is_external: bool,
21 pub is_deleted: bool,
22 pub scan_id: i64,
23 pub is_fifo: bool,
24 pub canonical_path: Option<String>,
25}
26
27#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
28pub enum Relation {}
29
30impl ActiveModelBehavior for ActiveModel {}