inflab
Tables (5)
categories (Categories)
- id (Key) — Unsigned Int — Primary key — NOT NULL
- 카테고리명 (name) — VarChar(12)
class_students (CourseStudents)
- id (Key) — Unsigned Int — Primary key — NOT NULL
- 수강생 (studentId) — Unsigned Int — Foreign key → students.id — NOT NULL — 수강생 테이블 기본키 회원 탈퇴시 onDelete : cascade
- 강좌 (class_id) — Unsigned Int — Foreign key → classes.id — NOT NULL — 강좌 테이블 기본키
- 생성일 (created_at) — Date Time — NOT NULL
classes (Courses)
- id (PK) — Unsigned Int — Primary key — NOT NULL
- 강사 (teacherId) — Unsigned Int — Foreign key → teachers.id — NOT NULL
- 카테고리 (categoryId) — Unsigned Int — Foreign key → categories.id — NOT NULL
- 강의명 (name) — VarChar(12) — NOT NULL
- 강의소개 (introduce) — Text
- 가격 (price) — Unsigned Int
- 생성일 (creatAt) — Date Time
- 수정일 (updateAt) — Date Time
- 공개여부 (open) — TinyInt — default : 0 강의 공개시 1로 변환
students
- id (Key) — Unsigned Int — Primary key — NOT NULL — 기본키
- 이메일 (email) — VarChar(30) — 중복 불가능
- 닉네임 (nickname) — VarChar(12) — 중복 불가능
- 생성일 (creat_at) — Date Time
teachers (Teachers)
- id (Key) — Unsigned Int — Primary key — NOT NULL
- 이름 (name) — VarChar(12) — NOT NULL
- 생성일 (creatAt) — Date Time — NOT NULL