CREATE TABLE SITENTBL(
	SITENCD VARCHAR(3) NOT NULL PRIMARY KEY, 
	SITENMEI VARCHAR(50), 
	SITENJUSYO VARCHAR(100), 
	SITENTEL VARCHAR(20));

CREATE TABLE NYUSYUKKINTBL(
	ID BIGINT NOT NULL PRIMARY KEY, 
	NYUSYUKKINCD INT, 
	TORIHIKICD INT, 
	SITENCD VARCHAR(3), 
	KOKYAKUCD VARCHAR(10), 
	KINGAKU BIGINT, 
	TORIHIKIBI DATE);
	
CREATE TABLE CODETBL(
	CODE VARCHAR(20) NOT NULL, 
	KEY VARCHAR(5) NOT NULL, 
	VALUE VARCHAR(100));

CREATE TABLE ZANDAKATBL(
	KOKYAKUCD VARCHAR(10) NOT NULL PRIMARY KEY,
	ZANDAKA BIGINT,
	SAISYUTORIHIKIBI DATE);

CREATE TABLE RIREKITBL(
	ID BIGINT, 
	NYUSYUKKINCD INT, 
	TORIHIKICD INT, 
	SITENCD VARCHAR(3), 
	KOKYAKUCD VARCHAR(10), 
	KINGAKU BIGINT, 
	TORIHIKIBI DATE);

CREATE TABLE SEIKYUTBL(
	BRANCHCD VARCHAR(20), 
	TANTOSYAID VARCHAR(20), 
	CUSTNAME VARCHAR(20),
	SEIKYUTUKI VARCHAR(20), 
	SEIKYUGAKU BIGINT);

CREATE TABLE CUSTOMERTBL(
	CUSTNAME VARCHAR(20),
	SEIKYUGAKU BIGINT);	


	