RAG DRIVE

Tables (5)

account (계정)

  • id (아이디) — int — Primary key — NOT NULL
  • user_id (유저 아이디) — int — Foreign key → user.id — NOT NULL
  • login_type (로그인 방식) — enum('DEFAULT', 'GOOGLE') — NOT NULL
  • password (비밀번호) — varchar(255)
  • created_at — datetime — NOT NULL
  • updated_at — datetime — NOT NULL

directory_user (유저의 파일 디렉터리)

  • id (아이디) — int — Primary key — NOT NULL
  • user_id (유저 아이디) — int — Foreign key → user.id — NOT NULL
  • parent_directory_id (부모 디렉터리 아이디) — int — Foreign key → directory_user.id
  • name (이름) — varchar(255)
  • created_at — datetime — NOT NULL
  • updated_at — datetime — NOT NULL

file (파일)

  • uuid (파일 UUID) — varchar(255) — Primary key — NOT NULL
  • creator_user_id (생성자 유저 아이디) — int — Foreign key → user.id — NOT NULL
  • mimetype (파일 형식) — varchar(255) — NOT NULL
  • size (파일 크기) — bigInt — NOT NULL
  • created_at — datetime — NOT NULL
  • updated_at — datetime — NOT NULL

file_user (유저의 파일)

  • id (아이디) — int — Primary key — NOT NULL
  • file_uuid (파일 UUID) — varchar(255) — Foreign key → file.uuid — NOT NULL
  • user_id (유저 아이디) — int — Foreign key → user.id — NOT NULL
  • directory_id (디렉터리 아이디) — int — Foreign key → directory_user.id — NOT NULL
  • is_editable (편집 권한 여부) — boolean — NOT NULL
  • is_owner (소유 권한 여부) — boolean — NOT NULL
  • is_deletable (삭제 권한 여부) — boolean — NOT NULL
  • created_at — datetime — NOT NULL
  • updated_at — datetime — NOT NULL

user (유저)

  • id (아이디) — int — Primary key — NOT NULL
  • email (이메일) — varchar(255) — NOT NULL
  • name (이름) — varchar(255) — NOT NULL
  • created_at — datetime — NOT NULL
  • updated_at — datetime — NOT NULL