My Storage
Tables (3)
File (파일)
- id (Key) — Long — Primary key — NOT NULL
- ownerId (Key2) — Long — Foreign key → User.id — NOT NULL
- folderId (Key3) — Long — Foreign key → Folder.id — NOT NULL
- path (이름과 확장자를 포함한 서버에서의 파일 경로) — String
- uuid (업로드된 파일의 uuid 이름) — String
- filename (작성자가 업로드한 파일 이름) — String
- type (파일의 종류 ex) jpg, jpeg, binary, ...) — String
- size (파일의 크기) — Long
- createdAt (업로드 시점) — LocalDateTime
Folder (폴더)
- id (Key) — Long — Primary key — NOT NULL
- userId (Key3) — Long — Foreign key → User.id — NOT NULL
- parentId (Key2) — Long — Foreign key → Folder.id — NOT NULL
- foldername (폴더의 이름) — String
- path (폴더의 경로) — String
- id (Key32) — Long — Foreign key → Folder.userId — NOT NULL
User (유저)
- id (Key) — Long — Primary key — NOT NULL
- email (Field3) — String
- nickname (Field2) — String
- password (Field) — String