test
Tables (3)
Follow
- id — INT — Foreign key → users.id — NOT NULL — Auto Increament
- id2 — INT — Foreign key → users.id — NOT NULL — Auto Increament
posts
- id — INT — Primary key — NOT NULL — Auto Increament
- content — VARCHAR(200) — NOT NULL
- img — VARCHAR(500) — 스트링 배열 형태로 저장 (역정규화)
- like — INT — NOT NULL — 좋아요
- UserId — INT — Foreign key → users.id — NOT NULL — users 외래키
users
- id — INT — Primary key — NOT NULL — Auto Increament
- email — VARCHAR(40) — 로컬용 계정, 단 sns에서 로그인할경우 이 필드는 비우고 snsID로 조회
- nick — VARCHAR(15) — NOT NULL — 닉네임. 별도로 설정하거나, sns로 로그인시 이름으로 설정
- password — VARCHAR(40)
- provider — VARCHAR(10) — NOT NULL — 어디로부터 로그인 했는지 정보
- snsId — VARCHAR(50) — sns으로 로그인할경우 sns용 유저 구분 아이디
- profileImage — VARCHAR(200) — 프로파일 이미지