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 is_hidden: bool,
23    pub scan_id: i64,
24    pub is_fifo: bool,
25    pub canonical_path: Option<String>,
26}
27
28#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
29pub enum Relation {}
30
31impl ActiveModelBehavior for ActiveModel {}