WIP
This commit is contained in:
parent
29a4baf346
commit
585ac3e1be
2 changed files with 47 additions and 36 deletions
23
crates/collab/src/db/worktree_entry.rs
Normal file
23
crates/collab/src/db/worktree_entry.rs
Normal 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 {}
|
Loading…
Add table
Add a link
Reference in a new issue