-
Notifications
You must be signed in to change notification settings - Fork 0
데이터베이스 ERD 설계 (Member, VMachine, SSHCredential, VMSpec) #2
Copy link
Copy link
Open
Labels
featureMake a new FunctionMake a new Function
Description
목표
VM 대여 서비스를 위한 데이터베이스 ERD를 설계하고 JPA Entity로 구현합니다.
작업 내용
- ERD 다이어그램 작성 및 문서화
- BaseEntity 구현 (created_at, updated_at)
- Member 엔티티 구현
- VMachine 엔티티 구현
- SSHCredential 엔티티 구현 (원격 접속)
- VMSpec 엔티티 구현 (VM 스펙 정보)
- Entity 간 연관관계 매핑
테이블 구조
Member (회원)
- member_id (PK)
- name, student_number, password
VMachine (가상 머신)
- vm_id (PK)
- member_id (FK)
- proxmox_vm_id, status
SSHCredential (원격 접속 정보)
- credential_id (PK)
- vm_id (FK)
- username, ssh_key
VMSpec (VM 스펙)
- vm_spec_id (PK)
- vm_id (FK, UNIQUE)
- cpu_cores, memory_mb, disk_gb
기술 스택
- Spring Data JPA
- MySQL
참고사항
- 모든 테이블에 BaseEntity 상속 (타임스탬프 자동 관리)
- VMachine : SSHCredential = 1 : 1 관계
- VMachine : VMSpec = 1 : 1 관계
참고 사항
- 추후 VPN 서비스에 의해 테이블 추가 가능
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
featureMake a new FunctionMake a new Function