--커뮤니티 테이블 생성
-- public.apptb_board01 definition

-- Drop table

-- DROP TABLE public.apptb_board01;

CREATE TABLE public.apptb_board01 (
	idx serial4 NOT NULL,
	user_id varchar NOT NULL,
	title varchar NOT NULL,
	board_content varchar NULL,
	writer varchar NOT NULL,
	indate timestamp NULL,
	count int4 NULL DEFAULT 0
);






--공지사항 테이블 생성
-- public.apptb_notice01 definition

-- Drop table

-- DROP TABLE public.apptb_notice01;

CREATE TABLE public.apptb_notice01 (
	idx serial4 NOT NULL,
	user_id varchar NOT NULL,
	title varchar NOT NULL,
	notice_content varchar NULL,
	writer varchar NOT NULL,
	indate timestamp NULL,
	count int4 NULL DEFAULT 0
);







-- 회원테이블 생성 --
-- public.comtb_user01 definition

-- Drop table

-- DROP TABLE public.comtb_user01;

CREATE TABLE public.comtb_user01 (
	user_id varchar NOT NULL,
	pswd varchar NULL,
	login_count int4 NULL,
	user_nm varchar NULL,
	user_group varchar NULL,
	hp_number varchar NULL,
	email varchar NULL,
	company_nm varchar NULL,
	company_zip_no varchar NULL,
	company_addr varchar NULL,
	company_addr_dtl varchar NULL,
	dept_nm varchar NULL,
	sys_reg_dt date NULL,
	sys_reg_id varchar NULL,
	sys_chg_dt date NULL,
	sys_chg_id varchar NULL,
	pswd_err_cnt int4 NULL,
	com_reg_num varchar NULL,
);



