SPARCS_Newbie_Project - 2023-05-20 07:32:27
Tables (5)
Issue
- Key (id) — int — Primary key — NOT NULL — @id @default(autoincrement()) // PK 위한 아이디
- Key (authorId) — int — Foreign key → User.Key — NOT NULL
- Key (locationNum) — String — Foreign key → User.Key — NOT NULL
- Key (locationId) — int — Foreign key → Location.Key — NOT NULL
- Field (title) — String — NOT NULL — @db.VarChar( 100)
- Field (content) — String — NOT NULL
- Field (createdAt) — DateTime — NOT NULL
- Field (modifiedAt) — DateTime — NOT NULL
- Field (startTime) — DateTime — 이슈가 시작된 시간
- Field (endTime) — DateTime — 이슈가 종료될 시간
Like
- Key (id) — int — Primary key — NOT NULL — @id @default(autoincrement()) // PK 위한 아이디
- Key (userId) — int — Foreign key → User.Key — NOT NULL — @id @default(autoincrement()) // PK 위한 아이디
- Key (issueId) — int — Foreign key → Issue.Key — NOT NULL
Location
- Key (id) — int — Primary key — NOT NULL — @id @default(autoincrement()) // PK 위한 아이디
- Field (locationName) — String — NOT NULL — @unique @db.VarChar(30)
- Field (locationNum) — String — NOT NULL — @unique @db.VarChar(10)
Untitled (Role)
- Key (id) — int — Primary key — NOT NULL
- Field (roleName) — String — NOT NULL — @db.VarChar(15)
User
- Key (id) — int — Primary key — NOT NULL — @id @default(autoincrement()) // PK 위한 아이디
- Field (userId) — String — NOT NULL — @unique @db.VarChar( 15) // 유저 아이디
- Field (password) — String — NOT NULL — @db.VarChar(100) // 비밀번호
- Field (userName) — String — NOT NULL — @db.VarChar(15) // 유저 이름
- Key (roleId) — int — Foreign key → Untitled.Key — NOT NULL — 관리자 권한 / 밴 구분을 위한 role Id