Giter Club home page Giter Club logo

arij's Introduction

AJIR


1. 와이어 프레임

와이어 프레임 상세 보기


2-1. DBMS ERD


2-2. DBMS DDL

DDL
CREATE TYPE pr AS ENUM ('EMERGENCY', 'URGENT', 'NORMAL');
CREATE TYPE ro AS ENUM ('USER', 'LEADER', 'ADMIN');
CREATE TYPE ws AS ENUM ('TODO', 'INPROGRESS', 'DONE');

CREATE TABLE issue (
 id BIGSERIAL PRIMARY KEY NOT NULL,
 member_id BIGINT NOT NULL,
 team_id BIGINT NOT NULL,
 title VARCHAR(200) NOT NULL,
 content VARCHAR(1000) NOT NULL,
 created_at TIMESTAMP NOT NULL,
 deleted_at TIMESTAMP,
 deleted BOOLEAN NOT NULL,
 priority pr NOT NULL,
 working_status ws NOT NULL
);

CREATE TABLE member (
 id BIGSERIAL PRIMARY KEY NOT NULL,
 team_id BIGINT NOT NULL,
 role ro NOT NULL,
 email VARCHAR(100) NOT NULL UNIQUE,
 pw1 VARCHAR(64) NOT NULL,
 pw2 VARCHAR(64) NOT NULL,
 pw3 VARCHAR(64) NOT NULL,
 nickname VARCHAR(20) NOT NULL UNIQUE
);

CREATE TABLE team (
 id BIGSERIAL PRIMARY KEY NOT NULL,
 name VARCHAR(16) NOT NULL UNIQUE
);

CREATE TABLE comment (
 id BIGSERIAL PRIMARY KEY NOT NULL,
 issue_id BIGINT NOT NULL,
 member_id BIGINT NOT NULL,
 content VARCHAR(1000) NOT NULL,
 created_at TIMESTAMP NOT NULL
);

ALTER TABLE comment ADD CONSTRAINT FK_issue_TO_comment_1 FOREIGN KEY (
 issue_id
)
REFERENCES issue (
 id
)
ON DELETE CASCADE;

ALTER TABLE comment ADD CONSTRAINT FK_member_TO_comment_1 FOREIGN KEY (
 member_id
)
REFERENCES member (
 id
);

ALTER TABLE issue ADD CONSTRAINT FK_member_TO_issue_1 FOREIGN KEY (
 member_id
)
REFERENCES member (
 id
);

ALTER TABLE issue ADD CONSTRAINT FK_team_TO_issue_1 FOREIGN KEY (
 team_id
)
REFERENCES team (
 id
);

ALTER TABLE member ADD CONSTRAINT FK_team_TO_member_1 FOREIGN KEY (
 team_id
)
REFERENCES team (
 id
);

3. API 명세서

API 명세서 상세 보기

arij's People

Contributors

ppajingae avatar ddalkytokky avatar hifumialice avatar dongheon0827 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.