This commit is contained in:
Antonio Scandurra 2022-12-01 18:39:24 +01:00
parent 29a4baf346
commit 585ac3e1be
2 changed files with 47 additions and 36 deletions

View file

@ -0,0 +1,23 @@
use super::{ProjectId, WorktreeEntryId, WorktreeId};
use sea_orm::entity::prelude::*;
#[derive(Clone, Debug, PartialEq, Eq, DeriveEntityModel)]
#[sea_orm(table_name = "worktree_entries")]
pub struct Model {
#[sea_orm(primary_key)]
project_id: ProjectId,
#[sea_orm(primary_key)]
worktree_id: WorktreeId,
#[sea_orm(primary_key)]
id: WorktreeEntryId,
is_dir: bool,
path: String,
inode: u64,
mtime_seconds: u64,
mtime_nanos: u32,
is_symlink: bool,
is_ignored: bool,
}
#[derive(Copy, Clone, Debug, EnumIter, DeriveRelation)]
pub enum Relation {}