Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

데이터베이스 #1

Open
piedroconti opened this issue May 15, 2023 · 0 comments
Open

데이터베이스 #1

piedroconti opened this issue May 15, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@piedroconti
Copy link
Collaborator

piedroconti commented May 15, 2023

주제영역1_LOG

TABLE User

user_id    INTEGER NOT NULL [pk],
nickname    VARCHAR2(30),
password    VARCHAR2(30),
name    VARCHAR2(30),
birth    DATE,
gender    VARCHAR2(30),
phone_number    INTEGER,
profile    BLOB,
is_admin    SMALLINT

User(one, partial) - Comments(many, total)
User(one, partial) - ReviewPost(many, total)
User(one, partial) - FreeBoardPost(many, total)
User(one, partial) - Announcement(many, total)
User(one, partial) - DiscussionPost(many, total)

TABLE Comments

comment_id    INTEGER NOT NULL [pk],
contents    VARCHAR2(500),
date_created    DATE,
review_id    INTEGER NOT NULL [fk reference ReviewPost],
user_id    INTEGER NOT NULL [fk reference User]

TABLE ReviewPost

review_id    INTEGER NOT NULL [pk],
title    VARCHAR2(40),
contents    VARCHAR2(1000),
date_created    DATE,
rating    FLOAT,
user_id    INTEGER NOT NULL [fk reference User],
book_id    INTEGER NOT NULL [fk reference Book]

ReviewPost(one, partial) - Comments(many, total)

TABLE Book

book_id    INTEGER NOT NULL [pk],
title    VARCHAR2(40),
author    VARCHAR2(20),
contents    VARCHAR2(500),
cover_image    BLOB,
rating    FLOAT

Book(one, partial) - ReviewPost(many, total)
Book(one, partial) - BookTagAssociation(many, total)

TABLE BookTagAssociation

book_id    INTEGER NOT NULL [fk reference Book],
tag_id    INTEGER NOT NULL [fk reference BookTag]

TABLE BookTag

tag_id    INTEGER NOT NULL,
tag_name    VARCHAR2(20)

BookTag(one, partial) - BookTagAssociation(many, total)

TABLE FreeBoardPost

post_id    INTEGER NOT NULL [pk],
title    VARCHAR2(40),
contents    VARCHAR2(1000),
date_created    DATE,
user_id    INTEGER NOT NULL [fk reference User]

TABLE Announcement

announcement_id    INTEGER NOT NULL [pk],
title    VARCHAR2(40),
contents    VARCHAR2(1000),
date_created    DATE,
user_id    INTEGER NOT NULL [fk reference User]

TABLE DiscussionPost

discussion_id    INTEGER NOT NULL [pk],
title    VARCHAR2(40),
contents    VARCHAR2(1000),
date_created    DATE,
topic_id    INTEGER NOT NULL [fk reference DiscussionTopic],
user_id    INTEGER NOT NULL [fk reference User]

TABLE DiscussionTopic

topic_id    INTEGER NOT NULL [pk],
title    VARCHAR2(100),
date_created    DATE

DiscussionTopic(one, partial) - DiscussionPost(many, total)

@piedroconti piedroconti self-assigned this May 15, 2023
@piedroconti piedroconti added documentation Improvements or additions to documentation enhancement New feature or request and removed documentation Improvements or additions to documentation labels May 15, 2023
piedroconti added a commit that referenced this issue Jun 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant