1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | CREATE TABLE "TEAM3"."ACCOUNT" ( "PROJECT_NUM" NUMBER(9,0) NOT NULL ENABLE, "BANK" VARCHAR2(20 BYTE), "ACCOUNT_NUM" VARCHAR2(40 BYTE), CONSTRAINT "IDX_ACCOUNT_PK" PRIMARY KEY ("PROJECT_NUM") USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS NOCOMPRESS LOGGING TABLESPACE "USERS" ENABLE, CONSTRAINT "IDX_ACCOUNT_FK0" FOREIGN KEY ("PROJECT_NUM") REFERENCES "TEAM3"."PROJECT" ("PROJECT_NUM") ENABLE ) SEGMENT CREATION DEFERRED PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING TABLESPACE "USERS" ; COMMENT ON COLUMN "TEAM3"."ACCOUNT"."PROJECT_NUM" IS '프로젝트번호'; COMMENT ON COLUMN "TEAM3"."ACCOUNT"."BANK" IS '은행명'; COMMENT ON COLUMN "TEAM3"."ACCOUNT"."ACCOUNT_NUM" IS '계좌번호'; COMMENT ON TABLE "TEAM3"."ACCOUNT" IS '계좌정보'; | cs |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | CREATE TABLE "TEAM3"."CATEGORY" ( "CATEGORY_NUM" NUMBER(2,0) NOT NULL ENABLE, "NAME" VARCHAR2(20 BYTE), "Depth" NUMBER(2,0), "HIGH_NUM" NUMBER(2,0) DEFAULT 0 NOT NULL ENABLE, "Order" NUMBER(2,0), "USE_YN" CHAR(1 BYTE), CONSTRAINT "IDX_CATEGORY_PK" PRIMARY KEY ("CATEGORY_NUM") USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT) TABLESPACE "USERS" ENABLE ) SEGMENT CREATION IMMEDIATE PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT) TABLESPACE "USERS" ; COMMENT ON COLUMN "TEAM3"."CATEGORY"."CATEGORY_NUM" IS '카테고리번호'; COMMENT ON COLUMN "TEAM3"."CATEGORY"."NAME" IS '카테고리명'; COMMENT ON COLUMN "TEAM3"."CATEGORY"."Depth" IS '차수'; COMMENT ON COLUMN "TEAM3"."CATEGORY"."HIGH_NUM" IS '상위카테고리번호'; COMMENT ON COLUMN "TEAM3"."CATEGORY"."Order" IS '순서'; COMMENT ON COLUMN "TEAM3"."CATEGORY"."USE_YN" IS '사용여부'; COMMENT ON TABLE "TEAM3"."CATEGORY" IS '카테고리'; | cs |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 | CREATE TABLE "TEAM3"."EXAM" ( "NUM" NUMBER(9,0) NOT NULL ENABLE, "PROJECT_NUM" NUMBER(9,0), "ID" VARCHAR2(30 BYTE) NOT NULL ENABLE, "STEP" NUMBER(1,0) DEFAULT 1, "MEMBER_NAME" VARCHAR2(20 BYTE), "REG_DATE" DATE, "FILE_IDX" NUMBER(9,0), CONSTRAINT "IDX_EXAM_PK" PRIMARY KEY ("NUM") USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT) TABLESPACE "USERS" ENABLE, CONSTRAINT "IDX_EXAM_FK0" FOREIGN KEY ("ID") REFERENCES "TEAM3"."MEMBER_DETAIL" ("ID") ENABLE, CONSTRAINT "IDX_EXAM_FK1" FOREIGN KEY ("PROJECT_NUM") REFERENCES "TEAM3"."PROJECT" ("PROJECT_NUM") DISABLE, CONSTRAINT "IDX_EXAM_FK2" FOREIGN KEY ("STEP") REFERENCES "TEAM3"."EXAM_STATE" ("STEP") ENABLE, CONSTRAINT "IDX_EXAM_FK4" FOREIGN KEY ("NUM") REFERENCES "TEAM3"."PRE_EXAM" ("NUM") ENABLE ) SEGMENT CREATION IMMEDIATE PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT) TABLESPACE "USERS" ; COMMENT ON COLUMN "TEAM3"."EXAM"."NUM" IS '심사번호'; COMMENT ON COLUMN "TEAM3"."EXAM"."PROJECT_NUM" IS '프로젝트번호'; COMMENT ON COLUMN "TEAM3"."EXAM"."ID" IS '회원아이디'; COMMENT ON COLUMN "TEAM3"."EXAM"."STEP" IS '단계'; COMMENT ON COLUMN "TEAM3"."EXAM"."MEMBER_NAME" IS '회원이름'; COMMENT ON COLUMN "TEAM3"."EXAM"."REG_DATE" IS '심사등록일'; COMMENT ON COLUMN "TEAM3"."EXAM"."FILE_IDX" IS '파일번호'; COMMENT ON TABLE "TEAM3"."EXAM" IS '심사'; | cs |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | CREATE TABLE "TEAM3"."EXAM_ATTACHFILE" ( "NUM" NUMBER(9,0) NOT NULL ENABLE, "FILE_IDX" NUMBER(9,0) NOT NULL ENABLE, "ORIGINE" VARCHAR2(100 BYTE), "ATTACH" VARCHAR2(100 BYTE), "FILE_SIZE" NUMBER(10,0), "PATH" VARCHAR2(50 BYTE) DEFAULT '/upload', "FILE_TYPE" VARCHAR2(30 BYTE) DEFAULT 'image/png', "REG_DATE" DATE, CONSTRAINT "IDX_EXAM_ATTACHFILE_PK" PRIMARY KEY ("NUM", "FILE_IDX") USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT) TABLESPACE "USERS" ENABLE ) SEGMENT CREATION IMMEDIATE PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT) TABLESPACE "USERS" ; COMMENT ON COLUMN "TEAM3"."EXAM_ATTACHFILE"."NUM" IS '심사번호'; COMMENT ON COLUMN "TEAM3"."EXAM_ATTACHFILE"."FILE_IDX" IS '파일번호'; COMMENT ON COLUMN "TEAM3"."EXAM_ATTACHFILE"."ORIGINE" IS '업로드파일명'; COMMENT ON COLUMN "TEAM3"."EXAM_ATTACHFILE"."ATTACH" IS '서버파일명'; COMMENT ON COLUMN "TEAM3"."EXAM_ATTACHFILE"."FILE_SIZE" IS '파일사이즈'; COMMENT ON COLUMN "TEAM3"."EXAM_ATTACHFILE"."PATH" IS '저장경로'; COMMENT ON COLUMN "TEAM3"."EXAM_ATTACHFILE"."FILE_TYPE" IS '확장자'; COMMENT ON COLUMN "TEAM3"."EXAM_ATTACHFILE"."REG_DATE" IS '등록일'; COMMENT ON TABLE "TEAM3"."EXAM_ATTACHFILE" IS '심사첨부파일'; | cs |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | CREATE TABLE "TEAM3"."EXAM_STATE" ( "STEP" NUMBER(1,0) NOT NULL ENABLE, "STATE" VARCHAR2(30 BYTE), CONSTRAINT "IDX_EXAM_STATE_PK" PRIMARY KEY ("STEP") USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT) TABLESPACE "USERS" ENABLE ) SEGMENT CREATION IMMEDIATE PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT) TABLESPACE "USERS" ; COMMENT ON COLUMN "TEAM3"."EXAM_STATE"."STEP" IS '단계'; COMMENT ON COLUMN "TEAM3"."EXAM_STATE"."STATE" IS '상태'; COMMENT ON TABLE "TEAM3"."EXAM_STATE" IS '심사상태'; | cs |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 | CREATE TABLE "TEAM3"."INVESTMENT" ( "ID" VARCHAR2(30 BYTE) NOT NULL ENABLE, "PROJECT_NUM" NUMBER(9,0) NOT NULL ENABLE, "REWARD_NUM" NUMBER(9,0) NOT NULL ENABLE, "TOTAL" NUMBER(10,0), "ADDR" VARCHAR2(500 BYTE), "CARD_NUM" VARCHAR2(30 BYTE), "CARD_EXDATE" VARCHAR2(10 BYTE), "CARD_PWD" VARCHAR2(4 BYTE), "CARD_BIRTH" NUMBER(6,0), CONSTRAINT "IDX_INVESTMENT_PK" PRIMARY KEY ("ID", "PROJECT_NUM", "REWARD_NUM") USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT) TABLESPACE "USERS" ENABLE, CONSTRAINT "IDX_INVESTMENT_FK0" FOREIGN KEY ("ID") REFERENCES "TEAM3"."MEMBER_DETAIL" ("ID") ENABLE, CONSTRAINT "IDX_INVESTMENT_FK1" FOREIGN KEY ("PROJECT_NUM", "REWARD_NUM") REFERENCES "TEAM3"."REWARD" ("PROJECT_NUM", "REWARD_NUM") ENABLE ) SEGMENT CREATION IMMEDIATE PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT) TABLESPACE "USERS" ; COMMENT ON COLUMN "TEAM3"."INVESTMENT"."ID" IS '회원아이디'; COMMENT ON COLUMN "TEAM3"."INVESTMENT"."PROJECT_NUM" IS '프로젝트번호'; COMMENT ON COLUMN "TEAM3"."INVESTMENT"."REWARD_NUM" IS '리워드번호'; COMMENT ON COLUMN "TEAM3"."INVESTMENT"."TOTAL" IS '총금액'; COMMENT ON COLUMN "TEAM3"."INVESTMENT"."ADDR" IS '배송지'; COMMENT ON COLUMN "TEAM3"."INVESTMENT"."CARD_NUM" IS '카드번호'; COMMENT ON COLUMN "TEAM3"."INVESTMENT"."CARD_EXDATE" IS '카드유효기간'; COMMENT ON COLUMN "TEAM3"."INVESTMENT"."CARD_PWD" IS '비밀번호'; COMMENT ON COLUMN "TEAM3"."INVESTMENT"."CARD_BIRTH" IS '생년월일'; COMMENT ON TABLE "TEAM3"."INVESTMENT" IS '투자'; | cs |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | CREATE TABLE "TEAM3"."MEMBER_ATTACHFILE" ( "ID" VARCHAR2(30 BYTE) NOT NULL ENABLE, "FILE_IDX" NUMBER(9,0) NOT NULL ENABLE, "ORIGINE" VARCHAR2(100 BYTE), "ATTACH" VARCHAR2(100 BYTE), "FILE_SIZE" NUMBER(10,0), "PATH" VARCHAR2(50 BYTE) DEFAULT '/upload', "FILE_TYPE" VARCHAR2(30 BYTE) DEFAULT 'image/png', "REG_DATE" DATE, CONSTRAINT "IDX_MEMBER_ATTACHFILE_PK" PRIMARY KEY ("ID", "FILE_IDX") USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT) TABLESPACE "USERS" ENABLE ) SEGMENT CREATION IMMEDIATE PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT) TABLESPACE "USERS" ; COMMENT ON COLUMN "TEAM3"."MEMBER_ATTACHFILE"."ID" IS '회원아이디'; COMMENT ON COLUMN "TEAM3"."MEMBER_ATTACHFILE"."FILE_IDX" IS '파일번호'; COMMENT ON COLUMN "TEAM3"."MEMBER_ATTACHFILE"."ORIGINE" IS '업로드파일명'; COMMENT ON COLUMN "TEAM3"."MEMBER_ATTACHFILE"."ATTACH" IS '서버파일명'; COMMENT ON COLUMN "TEAM3"."MEMBER_ATTACHFILE"."FILE_SIZE" IS '파일사이즈'; COMMENT ON COLUMN "TEAM3"."MEMBER_ATTACHFILE"."PATH" IS '저장경로'; COMMENT ON COLUMN "TEAM3"."MEMBER_ATTACHFILE"."FILE_TYPE" IS '확장자'; COMMENT ON COLUMN "TEAM3"."MEMBER_ATTACHFILE"."REG_DATE" IS '등록일'; COMMENT ON TABLE "TEAM3"."MEMBER_ATTACHFILE" IS '회원첨부파일'; | cs |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | CREATE TABLE "TEAM3"."MEMBER_CLASS" ( "CODE" NUMBER(2,0) NOT NULL ENABLE, "NAME" VARCHAR2(10 BYTE), CONSTRAINT "IDX_MEMBER_CLASS_PK" PRIMARY KEY ("CODE") USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT) TABLESPACE "USERS" ENABLE ) SEGMENT CREATION IMMEDIATE PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT) TABLESPACE "USERS" ; COMMENT ON COLUMN "TEAM3"."MEMBER_CLASS"."CODE" IS '회원구분코드'; COMMENT ON COLUMN "TEAM3"."MEMBER_CLASS"."NAME" IS '회원구분명'; COMMENT ON TABLE "TEAM3"."MEMBER_CLASS" IS '회원분류'; | cs |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 | CREATE TABLE "TEAM3"."MEMBER_DETAIL" ( "ID" VARCHAR2(30 BYTE) NOT NULL ENABLE, "CODE" NUMBER(2,0) DEFAULT 10 NOT NULL ENABLE, "MEMBER_NAME" VARCHAR2(20 BYTE) NOT NULL ENABLE, "COMPANY_NAME" VARCHAR2(40 BYTE), "PWD" VARCHAR2(30 BYTE), "BIRTH" DATE, "TEL" VARCHAR2(20 BYTE), "EMAIL" VARCHAR2(30 BYTE), "ADDR" VARCHAR2(50 BYTE), CONSTRAINT "IDX_MEMBER_DETAIL_PK" PRIMARY KEY ("ID") USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT) TABLESPACE "USERS" ENABLE, CONSTRAINT "IDX_MEMBER_DETAIL_FK0" FOREIGN KEY ("CODE") REFERENCES "TEAM3"."MEMBER_CLASS" ("CODE") ENABLE ) SEGMENT CREATION IMMEDIATE PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT) TABLESPACE "USERS" ; COMMENT ON COLUMN "TEAM3"."MEMBER_DETAIL"."ID" IS '아이디'; COMMENT ON COLUMN "TEAM3"."MEMBER_DETAIL"."CODE" IS '회원구분코드'; COMMENT ON COLUMN "TEAM3"."MEMBER_DETAIL"."MEMBER_NAME" IS '이름'; COMMENT ON COLUMN "TEAM3"."MEMBER_DETAIL"."COMPANY_NAME" IS '회사명'; COMMENT ON COLUMN "TEAM3"."MEMBER_DETAIL"."PWD" IS '비밀번호'; COMMENT ON COLUMN "TEAM3"."MEMBER_DETAIL"."BIRTH" IS '생년월일'; COMMENT ON COLUMN "TEAM3"."MEMBER_DETAIL"."TEL" IS '핸드폰번호'; COMMENT ON COLUMN "TEAM3"."MEMBER_DETAIL"."EMAIL" IS '이메일'; COMMENT ON COLUMN "TEAM3"."MEMBER_DETAIL"."ADDR" IS '주소'; COMMENT ON TABLE "TEAM3"."MEMBER_DETAIL" IS '회원상세'; | cs |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 | CREATE TABLE "TEAM3"."PRE_EXAM" ( "NUM" NUMBER(5,0) NOT NULL ENABLE, "ID" VARCHAR2(30 BYTE) NOT NULL ENABLE, "EX1" NUMBER(1,0), "EX2" NUMBER(1,0), "EX3" NUMBER(1,0), "EX4" NUMBER(1,0), "EX5" VARCHAR2(20 BYTE), "EX6" VARCHAR2(500 BYTE), "EX7" VARCHAR2(20 BYTE), "EX8" VARCHAR2(20 BYTE), "EX9" VARCHAR2(20 BYTE), "EX10" VARCHAR2(30 BYTE), "EX11" VARCHAR2(50 BYTE), "EX12" VARCHAR2(50 BYTE), "EX13" VARCHAR2(100 BYTE), "EX14" VARCHAR2(100 BYTE), "EX15" VARCHAR2(100 BYTE), CONSTRAINT "IDX_PRE_EXAM_PK" PRIMARY KEY ("NUM") USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT) TABLESPACE "USERS" ENABLE ) SEGMENT CREATION IMMEDIATE PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT) TABLESPACE "USERS" ; COMMENT ON COLUMN "TEAM3"."PRE_EXAM"."NUM" IS '심사번호'; COMMENT ON COLUMN "TEAM3"."PRE_EXAM"."ID" IS '아이디'; COMMENT ON COLUMN "TEAM3"."PRE_EXAM"."EX1" IS '1번'; COMMENT ON COLUMN "TEAM3"."PRE_EXAM"."EX2" IS '2번'; COMMENT ON COLUMN "TEAM3"."PRE_EXAM"."EX3" IS '3번'; COMMENT ON COLUMN "TEAM3"."PRE_EXAM"."EX4" IS '4번'; COMMENT ON COLUMN "TEAM3"."PRE_EXAM"."EX5" IS '5번'; COMMENT ON COLUMN "TEAM3"."PRE_EXAM"."EX6" IS '6번'; COMMENT ON COLUMN "TEAM3"."PRE_EXAM"."EX7" IS '7번'; COMMENT ON COLUMN "TEAM3"."PRE_EXAM"."EX8" IS '8번' COMMENT ON COLUMN "TEAM3"."PRE_EXAM"."EX9" IS '9번'; COMMENT ON COLUMN "TEAM3"."PRE_EXAM"."EX10" IS '10번'; COMMENT ON COLUMN "TEAM3"."PRE_EXAM"."EX11" IS '11번'; COMMENT ON COLUMN "TEAM3"."PRE_EXAM"."EX12" IS '12번'; COMMENT ON COLUMN "TEAM3"."PRE_EXAM"."EX13" IS '13번'; COMMENT ON COLUMN "TEAM3"."PRE_EXAM"."EX14" IS '14번'; COMMENT ON COLUMN "TEAM3"."PRE_EXAM"."EX15" IS '15번'; COMMENT ON TABLE "TEAM3"."PRE_EXAM" IS '예비심사'; | cs |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 | CREATE TABLE "TEAM3"."PROJECT" ( "PROJECT_NUM" NUMBER(9,0) NOT NULL ENABLE, "ID" VARCHAR2(30 BYTE), "CATEGORY_NUM" NUMBER(2,0), "TITLE" VARCHAR2(30 BYTE), "REG_DATE" DATE DEFAULT SYSDATE, "NAME" VARCHAR2(30 BYTE), "INTRODUCTION" VARCHAR2(2048 BYTE), "START_DATE" DATE, "END_DATE" DATE, "TARGET" NUMBER(10,0), "COLLECTION" NUMBER(10,0), "INVESTOR" NUMBER(10,0), "USE_YN" CHAR(1 BYTE), "FILE_IDX" NUMBER(9,0), CONSTRAINT "IDX_PROJECT_PK" PRIMARY KEY ("PROJECT_NUM") USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT) TABLESPACE "USERS" ENABLE, CONSTRAINT "IDX_PROJECT_FK0" FOREIGN KEY ("CATEGORY_NUM") REFERENCES "TEAM3"."CATEGORY" ("CATEGORY_NUM") ENABLE, CONSTRAINT "IDX_PROJECT_FK1" FOREIGN KEY ("ID") REFERENCES "TEAM3"."MEMBER_DETAIL" ("ID") ENABLE ) SEGMENT CREATION IMMEDIATE PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT) TABLESPACE "USERS" ; COMMENT ON COLUMN "TEAM3"."PROJECT"."PROJECT_NUM" IS '프로젝트번호'; COMMENT ON COLUMN "TEAM3"."PROJECT"."ID" IS '회원아이디'; COMMENT ON COLUMN "TEAM3"."PROJECT"."CATEGORY_NUM" IS '카테고리번호'; COMMENT ON COLUMN "TEAM3"."PROJECT"."TITLE" IS '제목'; COMMENT ON COLUMN "TEAM3"."PROJECT"."REG_DATE" IS '프로젝트등록일'; COMMENT ON COLUMN "TEAM3"."PROJECT"."NAME" IS '프로젝트이름'; COMMENT ON COLUMN "TEAM3"."PROJECT"."INTRODUCTION" IS '소개'; COMMENT ON COLUMN "TEAM3"."PROJECT"."START_DATE" IS '시작일'; COMMENT ON COLUMN "TEAM3"."PROJECT"."END_DATE" IS '마감일'; COMMENT ON COLUMN "TEAM3"."PROJECT"."TARGET" IS '목표금액'; COMMENT ON COLUMN "TEAM3"."PROJECT"."COLLECTION" IS '현재모금액'; COMMENT ON COLUMN "TEAM3"."PROJECT"."INVESTOR" IS '투자인원'; COMMENT ON COLUMN "TEAM3"."PROJECT"."USE_YN" IS '사용여부'; COMMENT ON COLUMN "TEAM3"."PROJECT"."FILE_IDX" IS '파일번호'; COMMENT ON TABLE "TEAM3"."PROJECT" IS '프로젝트'; | cs |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | CREATE TABLE "TEAM3"."PROJECT_ATTACHFILE" ( "PROJECT_NUM" NUMBER(9,0) NOT NULL ENABLE, "FILE_IDX" NUMBER(9,0) NOT NULL ENABLE, "ORIGINE" VARCHAR2(100 BYTE), "ATTACH" VARCHAR2(100 BYTE), "FILE_SIZE" NUMBER(10,0), "PATH" VARCHAR2(50 BYTE) DEFAULT '/upload', "FILE_TYPE" VARCHAR2(30 BYTE) DEFAULT 'image/png', "REG_DATE" DATE, CONSTRAINT "IDX_PROJECT_ATTACHFILE_PK" PRIMARY KEY ("PROJECT_NUM", "FILE_IDX") USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT) TABLESPACE "USERS" ENABLE ) SEGMENT CREATION IMMEDIATE PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT) TABLESPACE "USERS" ; COMMENT ON COLUMN "TEAM3"."PROJECT_ATTACHFILE"."PROJECT_NUM" IS '프로젝트번호'; COMMENT ON COLUMN "TEAM3"."PROJECT_ATTACHFILE"."FILE_IDX" IS '파일번호'; COMMENT ON COLUMN "TEAM3"."PROJECT_ATTACHFILE"."ORIGINE" IS '업로드파일명'; COMMENT ON COLUMN "TEAM3"."PROJECT_ATTACHFILE"."ATTACH" IS '서버파일명'; COMMENT ON COLUMN "TEAM3"."PROJECT_ATTACHFILE"."FILE_SIZE" IS '파일사이즈'; COMMENT ON COLUMN "TEAM3"."PROJECT_ATTACHFILE"."PATH" IS '저장경로'; COMMENT ON COLUMN "TEAM3"."PROJECT_ATTACHFILE"."FILE_TYPE" IS '확장자'; COMMENT ON COLUMN "TEAM3"."PROJECT_ATTACHFILE"."REG_DATE" IS '등록일'; COMMENT ON TABLE "TEAM3"."PROJECT_ATTACHFILE" IS '프로젝트첨부파일'; | cs |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | CREATE TABLE "TEAM3"."REPLY" ( "RNO" NUMBER(9,0) NOT NULL ENABLE, "PROJECT_NUM" NUMBER(9,0) NOT NULL ENABLE, "REPLYER_ID" VARCHAR2(30 BYTE) NOT NULL ENABLE, "REPLYER_NAME" VARCHAR2(20 BYTE) NOT NULL ENABLE, "REPLYTEXT" VARCHAR2(1000 BYTE) NOT NULL ENABLE, "REG_DATE" DATE DEFAULT SYSDATE NOT NULL ENABLE, "UPDATE_DATE" DATE DEFAULT SYSDATE NOT NULL ENABLE ) SEGMENT CREATION IMMEDIATE PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT) TABLESPACE "USERS" ; COMMENT ON COLUMN "TEAM3"."REPLY"."RNO" IS '댓글번호'; COMMENT ON COLUMN "TEAM3"."REPLY"."PROJECT_NUM" IS '프로젝트번호'; COMMENT ON COLUMN "TEAM3"."REPLY"."REPLYER_ID" IS '댓글작성자(ID)'; COMMENT ON COLUMN "TEAM3"."REPLY"."REPLYER_NAME" IS '댓글작성자(이름)'; COMMENT ON COLUMN "TEAM3"."REPLY"."REPLYTEXT" IS '댓글내용'; COMMENT ON COLUMN "TEAM3"."REPLY"."REG_DATE" IS '댓글작성일자'; COMMENT ON COLUMN "TEAM3"."REPLY"."UPDATE_DATE" IS '댓글수정일자'; | cs |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | CREATE TABLE "TEAM3"."REWARD" ( "PROJECT_NUM" NUMBER(9,0) NOT NULL ENABLE, "REWARD_NUM" NUMBER(9,0) NOT NULL ENABLE, "NAME" VARCHAR2(30 BYTE) NOT NULL ENABLE, "PRICE" NUMBER(10,0), "ITEM" VARCHAR2(100 BYTE), "MIN" NUMBER(10,0), "COUNT" NUMBER(10,0), CONSTRAINT "IDX_REWARD_PK" PRIMARY KEY ("PROJECT_NUM", "REWARD_NUM") USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT) TABLESPACE "USERS" ENABLE, CONSTRAINT "IDX_REWARD_FK0" FOREIGN KEY ("PROJECT_NUM") REFERENCES "TEAM3"."PROJECT" ("PROJECT_NUM") ENABLE ) SEGMENT CREATION IMMEDIATE PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE DEFAULT) TABLESPACE "USERS" ; COMMENT ON COLUMN "TEAM3"."REWARD"."PROJECT_NUM" IS '프로젝트번호'; COMMENT ON COLUMN "TEAM3"."REWARD"."REWARD_NUM" IS '리워드번호'; COMMENT ON COLUMN "TEAM3"."REWARD"."NAME" IS '리워드이름'; COMMENT ON COLUMN "TEAM3"."REWARD"."PRICE" IS '리워드금액'; COMMENT ON COLUMN "TEAM3"."REWARD"."ITEM" IS '아이템'; COMMENT ON COLUMN "TEAM3"."REWARD"."MIN" IS '최소금액'; COMMENT ON COLUMN "TEAM3"."REWARD"."COUNT" IS '갯수'; COMMENT ON TABLE "TEAM3"."REWARD" IS '리워드'; | cs |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | CREATE TABLE "TEAM3"."STORY" ( "PROJECT_NUM" NUMBER(9,0) NOT NULL ENABLE, "CONTENT" VARCHAR2(4000 BYTE), CONSTRAINT "IDX_STORY_PK" PRIMARY KEY ("PROJECT_NUM") USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS NOCOMPRESS LOGGING TABLESPACE "USERS" ENABLE, CONSTRAINT "IDX_STORY_FK0" FOREIGN KEY ("PROJECT_NUM") REFERENCES "TEAM3"."PROJECT" ("PROJECT_NUM") ENABLE ) SEGMENT CREATION DEFERRED PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING TABLESPACE "USERS" ; COMMENT ON COLUMN "TEAM3"."STORY"."PROJECT_NUM" IS '프로젝트번호'; COMMENT ON COLUMN "TEAM3"."STORY"."CONTENT" IS '내용'; COMMENT ON TABLE "TEAM3"."STORY" IS '스토리'; | cs |
'Legend 개발자 > Oracle' 카테고리의 다른 글
오라클 시험 (0) | 2017.06.23 |
---|---|
No.019 PL/SQL 커서 [2017-06-14] (0) | 2017.06.19 |
No.018 PL/SQL 조건문 [2017-06-14] (0) | 2017.06.19 |
No.017 PL/SQL 쿼리 [2017-06-14] (0) | 2017.06.19 |
No.016 PL/SQL 변수 [2017-06-14] (0) | 2017.06.16 |