2020-10-12 14:39:23 +09:00
|
|
|
create table comcode (
|
|
|
|
|
ccode smallint auto_increment not null
|
|
|
|
|
,cname varchar (200) not null
|
|
|
|
|
,cgroup varchar (20) not null
|
|
|
|
|
,cgroupname varchar (200) not null
|
|
|
|
|
,isuse tinyint not null
|
|
|
|
|
,corder smallint not null
|
|
|
|
|
,refcode varchar (50)
|
|
|
|
|
,cremark varchar (100)
|
|
|
|
|
,cdt datetime not null,cno bigint not NULL,udt datetime not null,uno bigint not NULL,uip varchar(50) not NULL
|
|
|
|
|
,primary key(ccode));
|
|
|
|
|
|
|
|
|
|
create table filegroup (
|
|
|
|
|
fgno bigint auto_increment not null
|
|
|
|
|
,tablename varchar (50) not null
|
|
|
|
|
,columnname varchar (50)
|
|
|
|
|
,cdt datetime not null,cno bigint not NULL,udt datetime not null,uno bigint not NULL,uip varchar(50) not NULL
|
|
|
|
|
,primary key(fgno));
|
|
|
|
|
|
|
|
|
|
create table fileinfo (
|
|
|
|
|
fileno bigint auto_increment not null
|
|
|
|
|
,fgno bigint not null
|
|
|
|
|
,orgname varchar (500) not null
|
|
|
|
|
,fileurl varchar (500) not null
|
|
|
|
|
,filesize bigint not null
|
|
|
|
|
,extension varchar (10) not null
|
|
|
|
|
,dcount int not null default 0
|
|
|
|
|
,isdel tinyint not null default 0
|
|
|
|
|
,cdt datetime not null,cno bigint not NULL,udt datetime not null,uno bigint not NULL,uip varchar(50) not NULL
|
|
|
|
|
,primary key(fileno));
|
|
|
|
|
|
|
|
|
|
create table assign (
|
|
|
|
|
asno mediumint auto_increment not null
|
|
|
|
|
,ascode mediumint
|
|
|
|
|
,isjoin tinyint not null
|
|
|
|
|
,joinyear char (4)
|
|
|
|
|
,joinprice int not null
|
|
|
|
|
,asname varchar (100) not null
|
|
|
|
|
,ceoname varchar (50)
|
|
|
|
|
,brno char (10)
|
2020-10-15 10:44:16 +09:00
|
|
|
,eino varchar (30) null
|
2020-10-12 14:39:23 +09:00
|
|
|
,grno char (13)
|
|
|
|
|
,btype varchar (50)
|
|
|
|
|
,bkind varchar (50)
|
|
|
|
|
,salesamount bigint not null
|
|
|
|
|
,homeurl varchar (100)
|
|
|
|
|
,mcount mediumint not null
|
|
|
|
|
,aday datetime
|
|
|
|
|
,astype smallint
|
|
|
|
|
,asctg smallint
|
|
|
|
|
,askey smallint
|
|
|
|
|
,post char (6)
|
|
|
|
|
,address1 varchar (200)
|
|
|
|
|
,address2 varchar (200)
|
|
|
|
|
,fgnobno bigint
|
|
|
|
|
,fgnobank bigint
|
|
|
|
|
,joindate datetime
|
|
|
|
|
,exitdate datetime
|
|
|
|
|
,status tinyint not null
|
|
|
|
|
,issite tinyint not null default 0
|
|
|
|
|
,subdomain varchar (50)
|
|
|
|
|
,sitename varchar (100)
|
|
|
|
|
,sitelogo bigint
|
|
|
|
|
,sitefooter text
|
|
|
|
|
,siteip varchar(50)
|
|
|
|
|
,ismain tinyint not null default 0
|
2020-10-15 10:44:16 +09:00
|
|
|
,mname varchar (30) null
|
|
|
|
|
,mphone varbinary (200) null
|
|
|
|
|
,taxemail varbinary (200) null
|
2020-10-12 14:39:23 +09:00
|
|
|
,isdel tinyint not null
|
|
|
|
|
,cdt datetime not null,cno bigint not NULL,udt datetime not null,uno bigint not NULL,uip varchar(50) not NULL
|
|
|
|
|
,primary key(asno));
|
|
|
|
|
|
|
|
|
|
create table assignman (
|
|
|
|
|
asmno mediumint auto_increment not null
|
|
|
|
|
,asno mediumint not null
|
|
|
|
|
,mtype tinyint not null
|
|
|
|
|
,jtype tinyint not null
|
|
|
|
|
,depart varchar (50)
|
|
|
|
|
,mname varchar (50) not null
|
|
|
|
|
,position varchar (50)
|
|
|
|
|
,telno varbinary (200)
|
|
|
|
|
,mobile varbinary (200)
|
|
|
|
|
,fax varbinary (200)
|
|
|
|
|
,email varbinary (200)
|
|
|
|
|
,post char (6)
|
|
|
|
|
,address1 varchar (200)
|
|
|
|
|
,address2 varchar (200)
|
|
|
|
|
,isdel tinyint
|
|
|
|
|
,cdt datetime not null,cno bigint not NULL,udt datetime not null,uno bigint not NULL,uip varchar(50) not NULL
|
|
|
|
|
,primary key(asmno));
|
|
|
|
|
|
|
|
|
|
create table assignfee (
|
|
|
|
|
asno mediumint not null
|
|
|
|
|
,fyear smallint not null
|
|
|
|
|
,fprice int not null
|
|
|
|
|
,fdate datetime
|
|
|
|
|
,fmemo varchar (200)
|
|
|
|
|
,status tinyint not null
|
|
|
|
|
,cdt datetime not null,cno bigint not NULL,udt datetime not null,uno bigint not NULL,uip varchar(50) not NULL
|
|
|
|
|
,primary key(asno,fyear));
|
|
|
|
|
|
|
|
|
|
create table cmt (
|
|
|
|
|
cmtno bigint auto_increment not null
|
|
|
|
|
,cmttype tinyint not null
|
|
|
|
|
,pcmtno bigint
|
|
|
|
|
,cdepth tinyint not null
|
|
|
|
|
,tcmtno bigint
|
|
|
|
|
,baseno bigint not null
|
|
|
|
|
,memotype varchar (20)
|
|
|
|
|
,memo text not null
|
|
|
|
|
,fgno bigint
|
|
|
|
|
,isdel tinyint not null
|
|
|
|
|
,cdt datetime not null,cno bigint not NULL,udt datetime not null,uno bigint not NULL,uip varchar(50) not NULL
|
|
|
|
|
,primary key(cmtno));
|
|
|
|
|
|
|
|
|
|
create table users (
|
|
|
|
|
userno int auto_increment not null
|
|
|
|
|
,usertype tinyint not null
|
2020-10-14 10:41:03 +09:00
|
|
|
,jointype tinyint not null
|
|
|
|
|
,snsid varchar (50) null
|
2020-10-12 14:39:23 +09:00
|
|
|
,userkind tinyint
|
|
|
|
|
,userid varchar (50)
|
|
|
|
|
,userpass varchar (200)
|
|
|
|
|
,username varchar (50) not null
|
|
|
|
|
,usernameeng varchar (50)
|
2020-10-15 10:44:16 +09:00
|
|
|
,rrnum varbinary (200) null
|
2020-10-12 14:39:23 +09:00
|
|
|
,gender tinyint
|
2020-10-14 10:41:03 +09:00
|
|
|
,birthday varbinary(200) null
|
2020-10-12 14:39:23 +09:00
|
|
|
,email varbinary (200)
|
|
|
|
|
,isacceptemail tinyint not null
|
|
|
|
|
,mobile varbinary (200)
|
2020-10-15 10:44:16 +09:00
|
|
|
,isacceptmobile tinyint not null
|
2020-10-12 14:39:23 +09:00
|
|
|
,telno varbinary (200)
|
|
|
|
|
,asno mediumint
|
|
|
|
|
,pasname varchar (50)
|
|
|
|
|
,depart varchar (50)
|
|
|
|
|
,ccposition smallint
|
2020-10-14 10:41:03 +09:00
|
|
|
,ccpositionetc varchar(50) null
|
2020-10-12 14:39:23 +09:00
|
|
|
,fgnoprofile bigint
|
|
|
|
|
,ccjobs varchar(200)
|
|
|
|
|
,userpno varbinary (200)
|
|
|
|
|
,bankname varchar (50)
|
|
|
|
|
,bankno varbinary (200)
|
|
|
|
|
,post char (6)
|
|
|
|
|
,address1 varchar (200)
|
|
|
|
|
,address2 varchar (200)
|
|
|
|
|
,introhtml mediumtext
|
|
|
|
|
,status tinyint not null
|
|
|
|
|
,exitreason varchar (500)
|
|
|
|
|
,logintime datetime not null default now()
|
|
|
|
|
,loginkey int
|
|
|
|
|
,send335time datetime
|
|
|
|
|
,pwcalltime datetime
|
|
|
|
|
,pwcallno smallint
|
|
|
|
|
,eastereggkey int
|
|
|
|
|
,eetime datetime
|
|
|
|
|
,kfcfyear tinyint
|
|
|
|
|
,isassignuser tinyint not null default 1
|
2020-10-15 10:44:16 +09:00
|
|
|
,uduty varchar (20) null
|
|
|
|
|
,slevel tinyint null
|
2020-10-12 14:39:23 +09:00
|
|
|
,edus varchar (10)
|
|
|
|
|
,remotekey int
|
|
|
|
|
,cdt datetime not null,cno bigint not NULL,udt datetime not null,uno bigint not NULL,uip varchar(50) not NULL
|
|
|
|
|
,primary key(userno));
|
|
|
|
|
|
|
|
|
|
create table errors (
|
|
|
|
|
errtime datetime not null default now()
|
|
|
|
|
,errmsg mediumtext
|
|
|
|
|
,userno int not null);
|
|
|
|
|
|
|
|
|
|
create table book (
|
|
|
|
|
bkno mediumint auto_increment not null
|
|
|
|
|
,bkname varchar (100) not null
|
|
|
|
|
,author varchar (100)
|
|
|
|
|
,publisher varchar (100)
|
|
|
|
|
,pubdate datetime
|
|
|
|
|
,fgnothumb bigint
|
|
|
|
|
,fgno bigint
|
|
|
|
|
,price int not null
|
|
|
|
|
,introhtml text
|
|
|
|
|
,contents text
|
|
|
|
|
,isuse tinyint not null
|
|
|
|
|
,cdt datetime not null,cno bigint not NULL,udt datetime not null,uno bigint not NULL,uip varchar(50) not NULL
|
|
|
|
|
,primary key(bkno));
|
|
|
|
|
|
|
|
|
|
create table ct (
|
|
|
|
|
ctno mediumint auto_increment not null
|
|
|
|
|
,cmno int not null
|
|
|
|
|
,qdiff smallint
|
|
|
|
|
,cc1 smallint
|
|
|
|
|
,cc2 smallint
|
|
|
|
|
,cc3 smallint
|
|
|
|
|
,cc4 smallint
|
|
|
|
|
,cc5 smallint
|
|
|
|
|
,ctype tinyint not null
|
|
|
|
|
,ccode varchar (30)
|
|
|
|
|
,ccodedel varchar(30)
|
|
|
|
|
,ctname varchar (200) not null
|
|
|
|
|
,fgnothumb bigint
|
|
|
|
|
,fgno bigint
|
|
|
|
|
,fgnotf bigint
|
|
|
|
|
,tfurl varchar(100)
|
|
|
|
|
,ismenu tinyint not null
|
|
|
|
|
,isdel tinyint not null
|
|
|
|
|
,isuse tinyint not null
|
|
|
|
|
,isoversize tinyint not null default 0
|
|
|
|
|
,authkey int
|
|
|
|
|
,cdt datetime not null,cno bigint not NULL,udt datetime not null,uno bigint not NULL,uip varchar(50) not NULL
|
|
|
|
|
,primary key(ctno));
|
|
|
|
|
|
|
|
|
|
create table ctpage (
|
|
|
|
|
cpno int auto_increment not null
|
|
|
|
|
,ctno mediumint not null
|
|
|
|
|
,pseq smallint not null
|
|
|
|
|
,cpname varchar (200) not null
|
|
|
|
|
,srcp varchar (500) not null
|
|
|
|
|
,srcm varchar (500) not null
|
|
|
|
|
,isdel tinyint not null
|
|
|
|
|
,cdt datetime not null,cno bigint not NULL,udt datetime not null,uno bigint not NULL,uip varchar(50) not NULL
|
|
|
|
|
,primary key(cpno));
|
|
|
|
|
|
|
|
|
|
create table question (
|
|
|
|
|
qno int auto_increment not null
|
|
|
|
|
,cmno int
|
|
|
|
|
,qdiff smallint not null
|
|
|
|
|
,cc1 smallint not null
|
|
|
|
|
,cc2 smallint not null
|
|
|
|
|
,cc3 smallint not null
|
|
|
|
|
,cc4 smallint not null
|
|
|
|
|
,cc5 smallint not null
|
|
|
|
|
,atype tinyint not null
|
|
|
|
|
,dpoint tinyint not null
|
|
|
|
|
,qtext mediumtext not null
|
|
|
|
|
,qtextstring text
|
|
|
|
|
,qdesc mediumtext
|
|
|
|
|
,rightcount tinyint not null
|
|
|
|
|
,ispassspace tinyint not null
|
|
|
|
|
,isignorecase tinyint not null
|
|
|
|
|
,isuse tinyint not null
|
|
|
|
|
,authkey int
|
|
|
|
|
,cdt datetime not null,cno bigint not NULL,udt datetime not null,uno bigint not NULL,uip varchar(50) not NULL
|
|
|
|
|
,primary key(qno));
|
|
|
|
|
|
|
|
|
|
create table questionitem (
|
|
|
|
|
qino int auto_increment not null
|
|
|
|
|
,qno int not null
|
|
|
|
|
,fgno bigint
|
|
|
|
|
,isright tinyint not null
|
|
|
|
|
,qitext varchar (200)
|
|
|
|
|
,isdel tinyint not null
|
|
|
|
|
,cdt datetime not null,cno bigint not NULL,udt datetime not null,uno bigint not NULL,uip varchar(50) not NULL
|
|
|
|
|
,primary key(qino));
|
|
|
|
|
|
|
|
|
|
create table rsc (
|
|
|
|
|
rscno mediumint auto_increment not null
|
|
|
|
|
,rstype tinyint not null
|
|
|
|
|
,rscname varchar (200) not null
|
|
|
|
|
,isuse tinyint not null
|
|
|
|
|
,cdt datetime not null,cno bigint not NULL,udt datetime not null,uno bigint not NULL,uip varchar(50) not NULL
|
|
|
|
|
,primary key(rscno));
|
|
|
|
|
|
|
|
|
|
create table rscq (
|
|
|
|
|
rscqno int auto_increment not null
|
|
|
|
|
,rscno mediumint not null
|
|
|
|
|
,qno int not null
|
|
|
|
|
,dseq tinyint not null
|
|
|
|
|
,cdt datetime not null,cno bigint not NULL,udt datetime not null,uno bigint not NULL,uip varchar(50) not NULL
|
|
|
|
|
,primary key(rscqno));
|
|
|
|
|
|
|
|
|
|
create table ncst (
|
|
|
|
|
ntno int auto_increment not null
|
|
|
|
|
,ntype tinyint not null
|
|
|
|
|
,tcode char (2) not null
|
|
|
|
|
,tname varchar (100) not null
|
|
|
|
|
,cdt datetime not null,cno bigint not NULL,udt datetime not null,uno bigint not NULL,uip varchar(50) not NULL
|
|
|
|
|
,primary key(ntno));
|
|
|
|
|
|
|
|
|
|
create table ncsm (
|
|
|
|
|
nmno int auto_increment not null
|
|
|
|
|
,ntno int not null
|
|
|
|
|
,mcode char (2) not null
|
|
|
|
|
,acode varchar(20) not null
|
|
|
|
|
,mname varchar (100) not null
|
|
|
|
|
,cdt datetime not null,cno bigint not NULL,udt datetime not null,uno bigint not NULL,uip varchar(50) not NULL
|
|
|
|
|
,primary key(nmno));
|
|
|
|
|
|
|
|
|
|
create table ncsb (
|
|
|
|
|
nbno int auto_increment not null
|
|
|
|
|
,nmno int not null
|
|
|
|
|
,bcode char (2) not null
|
|
|
|
|
,acode varchar(20) not null
|
|
|
|
|
,bname varchar (100) not null
|
|
|
|
|
,cdt datetime not null,cno bigint not NULL,udt datetime not null,uno bigint not NULL,uip varchar(50) not NULL
|
|
|
|
|
,primary key(nbno));
|
|
|
|
|
|
|
|
|
|
create table ncsd (
|
|
|
|
|
ndno int auto_increment not null
|
|
|
|
|
,nbno int not null
|
|
|
|
|
,dcode char (2) not null
|
|
|
|
|
,acode varchar(20) not null
|
|
|
|
|
,dname varchar (100) not null
|
|
|
|
|
,cdt datetime not null,cno bigint not NULL,udt datetime not null,uno bigint not NULL,uip varchar(50) not NULL
|
|
|
|
|
,primary key(ndno));
|
|
|
|
|
|
|
|
|
|
create table ncsu (
|
|
|
|
|
nuno int auto_increment not null
|
|
|
|
|
,ndno int not null
|
|
|
|
|
,ucode varchar (20) not null
|
|
|
|
|
,acode varchar(20) not null
|
|
|
|
|
,uname varchar (100) not null
|
|
|
|
|
,cdt datetime not null,cno bigint not NULL,udt datetime not null,uno bigint not NULL,uip varchar(50) not NULL
|
|
|
|
|
,primary key(nuno));
|
|
|
|
|
|
|
|
|
|
create table ncse (
|
|
|
|
|
neno int auto_increment not null
|
|
|
|
|
,nuno int not null
|
|
|
|
|
,ecode char (2) not null
|
|
|
|
|
,acode varchar(20) not null
|
|
|
|
|
,ename varchar (100) not null
|
|
|
|
|
,cdt datetime not null,cno bigint not NULL,udt datetime not null,uno bigint not NULL,uip varchar(50) not NULL
|
|
|
|
|
,primary key(neno));
|
|
|
|
|
|
|
|
|
|
create table term (
|
|
|
|
|
tmno mediumint auto_increment not null
|
|
|
|
|
,tyear smallint not null
|
|
|
|
|
,tseq smallint not null
|
|
|
|
|
,rstime datetime
|
|
|
|
|
,retime datetime
|
|
|
|
|
,sstime datetime
|
|
|
|
|
,setime datetime
|
|
|
|
|
,gstime datetime
|
|
|
|
|
,getime datetime
|
|
|
|
|
,cdt datetime not null,cno bigint not NULL,udt datetime not null,uno bigint not NULL,uip varchar(50) not NULL
|
|
|
|
|
,primary key(tmno));
|
|
|
|
|
|
|
|
|
|
create table boardmaster (
|
|
|
|
|
bmno smallint auto_increment not null
|
|
|
|
|
,bmcode varchar (20) not null
|
|
|
|
|
,bmposition tinyint not null
|
|
|
|
|
,bmname varchar (100) not null
|
|
|
|
|
,bmdesc varchar (1000)
|
|
|
|
|
,bmtype tinyint not null
|
|
|
|
|
,disptype tinyint not null
|
|
|
|
|
,isuseopening tinyint not null
|
|
|
|
|
,isreply tinyint not null
|
|
|
|
|
,isopen tinyint not null
|
|
|
|
|
,isdefault tinyint not null
|
|
|
|
|
,asno mediumint
|
|
|
|
|
,cdt datetime not null,cno bigint not NULL,udt datetime not null,uno bigint not NULL,uip varchar(50) not NULL
|
|
|
|
|
,primary key(bmno));
|
|
|
|
|
|
|
|
|
|
create table boardmasteropening (
|
|
|
|
|
opno smallint auto_increment not null
|
|
|
|
|
,bmno smallint not null
|
|
|
|
|
,opname varchar (100) not null
|
|
|
|
|
,isuse tinyint not null
|
|
|
|
|
,isdel tinyint not null
|
|
|
|
|
,dsort tinyint not null
|
|
|
|
|
,cdt datetime not null,cno bigint not NULL,udt datetime not null,uno bigint not NULL,uip varchar(50) not NULL
|
|
|
|
|
,primary key(opno));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
create table cg (
|
|
|
|
|
cgno smallint auto_increment not null
|
|
|
|
|
,pcgno smallint
|
|
|
|
|
,cgname varchar (20)
|
|
|
|
|
,cgcode varchar (20)
|
|
|
|
|
,isuse tinyint not null default 1
|
|
|
|
|
,iscover tinyint not null default 0
|
|
|
|
|
,isdel tinyint not null default 0
|
|
|
|
|
,cdt datetime not null,cno bigint not NULL,udt datetime not null,uno bigint not NULL,uip varchar(50) not NULL
|
|
|
|
|
,primary key(cgno));
|
|
|
|
|
|
|
|
|
|
create table cm (
|
|
|
|
|
cmno int auto_increment not null
|
|
|
|
|
,ismaster tinyint not null
|
|
|
|
|
,cgno smallint not null
|
|
|
|
|
,pcmno int
|
|
|
|
|
,cname varchar (100) not null
|
|
|
|
|
,kname varchar (100)
|
|
|
|
|
,tmno mediumint
|
|
|
|
|
,classno tinyint
|
|
|
|
|
,rstime datetime
|
|
|
|
|
,retime datetime
|
|
|
|
|
,sstime datetime
|
|
|
|
|
,setime datetime
|
|
|
|
|
,gstime datetime
|
|
|
|
|
,getime datetime
|
|
|
|
|
,cshape tinyint not null
|
|
|
|
|
,infee int not null
|
|
|
|
|
,outfee int not null
|
|
|
|
|
,quota smallint not null
|
|
|
|
|
,introhtml mediumtext
|
|
|
|
|
,targethtml text
|
|
|
|
|
,goalhtml text
|
|
|
|
|
,contenthtml mediumtext
|
2020-10-13 16:10:18 +09:00
|
|
|
,studyplace smallint null
|
2020-10-12 14:39:23 +09:00
|
|
|
,studytime smallint not null
|
|
|
|
|
,certcc smallint
|
|
|
|
|
,certgradecc smallint
|
|
|
|
|
,jobcc varchar (100)
|
|
|
|
|
,jobpositiongrade varchar(15)
|
|
|
|
|
,difficulty tinyint
|
|
|
|
|
,isrefund tinyint not null
|
|
|
|
|
,isuse tinyint not null
|
|
|
|
|
,isseq tinyint not null default 1
|
2020-10-12 15:32:10 +09:00
|
|
|
,fgnocm bigint null
|
2020-10-12 14:39:23 +09:00
|
|
|
,fgno bigint
|
2020-10-13 16:10:18 +09:00
|
|
|
,typeman varchar(100) null
|
|
|
|
|
,typeedu varchar(100) null
|
|
|
|
|
,typegrade varchar(100) null
|
|
|
|
|
,typejob varchar(100) null
|
2020-10-21 15:18:49 +09:00
|
|
|
,iscertificate tinyint not null default 1
|
2020-10-12 14:39:23 +09:00
|
|
|
,isdel tinyint not null
|
|
|
|
|
,cdt datetime not null,cno bigint not NULL,udt datetime not null,uno bigint not NULL,uip varchar(50) not NULL
|
|
|
|
|
,primary key(cmno));
|
|
|
|
|
|
|
|
|
|
create table cmrelay (
|
|
|
|
|
cmno int not null
|
|
|
|
|
,rcmno int not null
|
|
|
|
|
,ispre tinyint not null
|
|
|
|
|
,cdt datetime not null,cno bigint not NULL,udt datetime not null,uno bigint not NULL,uip varchar(50) not NULL
|
|
|
|
|
,primary key(cmno,rcmno,ispre));
|
|
|
|
|
|
|
|
|
|
create table cmncsd (
|
|
|
|
|
cmno int not null
|
|
|
|
|
,ndno int not null
|
|
|
|
|
,cdt datetime not null,cno bigint not NULL,udt datetime not null,uno bigint not NULL,uip varchar(50) not NULL
|
|
|
|
|
,primary key(cmno,ndno));
|
|
|
|
|
|
|
|
|
|
create table cmprof (
|
|
|
|
|
cmno int not null
|
|
|
|
|
,userno int not null
|
|
|
|
|
,pfee int not null
|
|
|
|
|
,cdt datetime not null,cno bigint not NULL,udt datetime not null,uno bigint not NULL,uip varchar(50) not NULL
|
|
|
|
|
,primary key(cmno,userno));
|
|
|
|
|
|
|
|
|
|
create table cmbook (
|
|
|
|
|
cmno int not null
|
|
|
|
|
,bkno mediumint not null
|
|
|
|
|
,cdt datetime not null,cno bigint not NULL,udt datetime not null,uno bigint not NULL,uip varchar(50) not NULL
|
|
|
|
|
,primary key(cmno,bkno));
|
|
|
|
|
|
|
|
|
|
create table cminning (
|
|
|
|
|
cmino bigint auto_increment not null
|
|
|
|
|
,cmno int not null
|
|
|
|
|
,week tinyint not null default 1
|
|
|
|
|
,iseq tinyint not null
|
|
|
|
|
,isonline tinyint not null
|
|
|
|
|
,ititle varchar (200) not null
|
|
|
|
|
,icontent varchar (500)
|
|
|
|
|
,iday smallint
|
|
|
|
|
,idate datetime
|
|
|
|
|
,ist varchar (4)
|
|
|
|
|
,iet varchar (4)
|
|
|
|
|
,fgnotf bigint
|
|
|
|
|
,ctno mediumint
|
|
|
|
|
,istaste tinyint not null
|
|
|
|
|
,sttime smallint not null
|
|
|
|
|
,atime smallint not null
|
|
|
|
|
,mstime smallint not null
|
|
|
|
|
,metime smallint not null
|
|
|
|
|
,userno int
|
|
|
|
|
,fgno bigint
|
|
|
|
|
,orgcmino bigint
|
|
|
|
|
,cdt datetime not null,cno bigint not NULL,udt datetime not null,uno bigint not NULL,uip varchar(50) not NULL
|
|
|
|
|
,primary key(cmino));
|
|
|
|
|
|
2020-10-14 13:05:43 +09:00
|
|
|
create table cminningscd (
|
|
|
|
|
cmisno bigint auto_increment not null
|
|
|
|
|
,cmino bigint not null
|
|
|
|
|
,estart datetime not null
|
|
|
|
|
,eend datetime not null
|
|
|
|
|
,quota smallint not null
|
|
|
|
|
,cdt datetime not null,cno bigint not NULL,udt datetime not null,uno bigint not NULL,uip varchar(50) not NULL
|
|
|
|
|
,primary key(cmisno));
|
|
|
|
|
|
2020-10-12 14:39:23 +09:00
|
|
|
create table cmev (
|
|
|
|
|
cmno int not null
|
|
|
|
|
,attend tinyint not null
|
|
|
|
|
,attendcut tinyint not null
|
|
|
|
|
,attendrfd tinyint not null
|
|
|
|
|
,attendcutrfd tinyint not null
|
|
|
|
|
,mid tinyint not null
|
|
|
|
|
,midcut tinyint not null
|
|
|
|
|
,midrfd tinyint not null
|
|
|
|
|
,midcutrfd tinyint not null
|
|
|
|
|
,final tinyint not null
|
|
|
|
|
,finalcut tinyint not null
|
|
|
|
|
,finalrfd tinyint not null
|
|
|
|
|
,finalcutrfd tinyint not null
|
|
|
|
|
,subject tinyint not null
|
|
|
|
|
,subjectcut tinyint not null
|
|
|
|
|
,subjectrfd tinyint not null
|
|
|
|
|
,subjectcutrfd tinyint not null
|
|
|
|
|
,discuss tinyint not null
|
|
|
|
|
,discusscut tinyint not null
|
|
|
|
|
,discussrfd tinyint not null
|
|
|
|
|
,discusscutrfd tinyint not null
|
|
|
|
|
,etc tinyint not null
|
|
|
|
|
,etccut tinyint not null
|
|
|
|
|
,etcrfd tinyint not null
|
|
|
|
|
,etccutrfd tinyint not null
|
|
|
|
|
,cut tinyint not null
|
|
|
|
|
,cutrfd tinyint not null
|
2020-10-20 17:15:59 +09:00
|
|
|
,isoffabs tinyint null
|
2020-10-12 14:39:23 +09:00
|
|
|
,cdt datetime not null,cno bigint not NULL,udt datetime not null,uno bigint not NULL,uip varchar(50) not NULL
|
|
|
|
|
,primary key(cmno));
|
|
|
|
|
|
|
|
|
|
create table cmex (
|
|
|
|
|
exno int auto_increment not null
|
|
|
|
|
,cmno int not null
|
|
|
|
|
,extype tinyint not null
|
|
|
|
|
,exname varchar (100) not null
|
|
|
|
|
,edesc varchar (500)
|
|
|
|
|
,etime smallint not null
|
|
|
|
|
,econdition tinyint not null
|
|
|
|
|
,evtype tinyint not null
|
|
|
|
|
,eqtype tinyint not null
|
|
|
|
|
,israndq tinyint not null
|
|
|
|
|
,israndqi tinyint not null
|
|
|
|
|
,qcount tinyint not null
|
|
|
|
|
,isblur tinyint not null
|
|
|
|
|
,tpoint tinyint not null
|
|
|
|
|
,relaylimit tinyint
|
|
|
|
|
,isusebackup tinyint not null
|
|
|
|
|
,isseq tinyint not null
|
|
|
|
|
,isresultopen tinyint not null default 0
|
|
|
|
|
,isdel tinyint not null
|
|
|
|
|
,cdt datetime not null,cno bigint not NULL,udt datetime not null,uno bigint not NULL,uip varchar(50) not NULL
|
|
|
|
|
,primary key(exno));
|
|
|
|
|
|
|
|
|
|
create table cmexlayer (
|
|
|
|
|
exno int not null
|
|
|
|
|
,qdiff smallint not null
|
|
|
|
|
,cc1 smallint not null
|
|
|
|
|
,cc2 smallint not null
|
|
|
|
|
,cc3 smallint not null
|
|
|
|
|
,cc4 smallint not null
|
|
|
|
|
,cc5 smallint not null
|
|
|
|
|
,qcount tinyint not null
|
|
|
|
|
,rpoint tinyint not null
|
|
|
|
|
,cdt datetime not null,cno bigint not NULL,udt datetime not null,uno bigint not NULL,uip varchar(50) not NULL
|
|
|
|
|
,primary key(exno,qdiff,cc1,cc2,cc3,cc4,cc5));
|
|
|
|
|
|
|
|
|
|
create table cmexq (
|
|
|
|
|
eqno int auto_increment not null
|
|
|
|
|
,exno int not null
|
|
|
|
|
,qseq smallint not null
|
|
|
|
|
,qno int not null
|
|
|
|
|
,rpoint tinyint not null
|
|
|
|
|
,cdt datetime not null,cno bigint not NULL,udt datetime not null,uno bigint not NULL,uip varchar(50) not NULL
|
|
|
|
|
,primary key(eqno));
|
|
|
|
|
|
|
|
|
|
create table cmsd (
|
|
|
|
|
sdno int auto_increment not null
|
|
|
|
|
,cmno int not null
|
|
|
|
|
,sdtype tinyint not null
|
|
|
|
|
,sdname varchar (100) not null
|
|
|
|
|
,sddesc varchar (500)
|
|
|
|
|
,tpoint tinyint not null
|
|
|
|
|
,sdcondition tinyint not null
|
|
|
|
|
,fgno bigint
|
|
|
|
|
,isdel tinyint not null
|
|
|
|
|
,orgsdno int
|
|
|
|
|
,cdt datetime not null,cno bigint not NULL,udt datetime not null,uno bigint not NULL,uip varchar(50) not NULL
|
|
|
|
|
,primary key(sdno));
|
|
|
|
|
|
|
|
|
|
create table cmrs (
|
|
|
|
|
rsno int auto_increment not null
|
|
|
|
|
,cmno int not null
|
|
|
|
|
,rscno mediumint not null
|
|
|
|
|
,rstype tinyint not null
|
|
|
|
|
,rsname varchar (100) not null
|
|
|
|
|
,rscondition tinyint not null
|
|
|
|
|
,isdel tinyint not null
|
|
|
|
|
,cdt datetime not null,cno bigint not NULL,udt datetime not null,uno bigint not NULL,uip varchar(50) not NULL
|
|
|
|
|
,primary key(rsno));
|
|
|
|
|
|
|
|
|
|
create table cmmenu (
|
|
|
|
|
cmno int not null
|
|
|
|
|
,isplan tinyint not null
|
|
|
|
|
,iscontent tinyint not null
|
|
|
|
|
,isev tinyint not null
|
|
|
|
|
,isrs tinyint not null
|
|
|
|
|
,isgrade tinyint not null
|
|
|
|
|
,cdt datetime not null,cno bigint not NULL,udt datetime not null,uno bigint not NULL,uip varchar(50) not NULL
|
|
|
|
|
,primary key(cmno));
|
|
|
|
|
|
|
|
|
|
create table cmmenubm (
|
|
|
|
|
cmno int not null
|
|
|
|
|
,bmno smallint not null
|
|
|
|
|
,cdt datetime not null,cno bigint not NULL,udt datetime not null,uno bigint not NULL,uip varchar(50) not NULL
|
|
|
|
|
,primary key(cmno,bmno));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
create table cmpc (
|
|
|
|
|
pcno int not null
|
|
|
|
|
,cmno int not null
|
|
|
|
|
,dseq tinyint not null
|
|
|
|
|
,orginfee int not null
|
|
|
|
|
,orgoutfee int not null
|
|
|
|
|
,drate tinyint not null
|
|
|
|
|
,infee int not null
|
|
|
|
|
,outfee int not null
|
|
|
|
|
,cdt datetime not null,cno bigint not NULL,udt datetime not null,uno bigint not NULL,uip varchar(50) not NULL
|
|
|
|
|
,primary key(pcno,cmno));
|
|
|
|
|
|
|
|
|
|
create table board (
|
|
|
|
|
bno bigint auto_increment not null
|
|
|
|
|
,pbno bigint
|
|
|
|
|
,bmno smallint not null
|
|
|
|
|
,opno smallint
|
|
|
|
|
,subject varchar (200) not null
|
|
|
|
|
,contents text not null
|
|
|
|
|
,fgno bigint
|
|
|
|
|
,fgnothumb bigint
|
|
|
|
|
,cmno int
|
|
|
|
|
,rcount int not null default 0
|
|
|
|
|
,rpcount int not null
|
|
|
|
|
,isdel tinyint not null default 0
|
|
|
|
|
,istop tinyint not null
|
|
|
|
|
,issecr tinyint not null
|
|
|
|
|
,isopen tinyint not null
|
|
|
|
|
,cdt datetime not null,cno bigint not NULL,udt datetime not null,uno bigint not NULL,uip varchar(50) not NULL
|
|
|
|
|
,primary key(bno));
|
|
|
|
|
|
|
|
|
|
create table boardcmt (
|
|
|
|
|
bcno bigint auto_increment not null
|
|
|
|
|
,bno bigint not null
|
|
|
|
|
,ctext varchar (500) not null
|
|
|
|
|
,isdel tinyint not null
|
|
|
|
|
,cdt datetime not null,cno bigint not NULL,udt datetime not null,uno bigint not NULL,uip varchar(50) not NULL
|
|
|
|
|
,primary key(bcno));
|
|
|
|
|
|
|
|
|
|
create table authlog (
|
|
|
|
|
logtype tinyint not null
|
|
|
|
|
,userno int
|
|
|
|
|
,usertypeorg tinyint not null
|
|
|
|
|
,usertypenew tinyint not null
|
|
|
|
|
,cdt datetime not null,cno bigint not NULL,udt datetime not null,uno bigint not NULL,uip varchar(50) not NULL);
|
|
|
|
|
|
|
|
|
|
create table menu (
|
|
|
|
|
menuno int auto_increment not null
|
|
|
|
|
,menuname varchar (20) not null
|
|
|
|
|
,pmenuno int
|
|
|
|
|
,menuurl varchar (100) not null
|
|
|
|
|
,menulevel tinyint not null
|
|
|
|
|
,menuorder tinyint not null
|
|
|
|
|
,ishid tinyint not null default 0
|
|
|
|
|
,isuse tinyint not null
|
|
|
|
|
,cdt datetime not null,cno bigint not NULL,udt datetime not null,uno bigint not NULL,uip varchar(50) not NULL
|
|
|
|
|
,primary key(menuno));
|
|
|
|
|
|
|
|
|
|
create table menuauth (
|
|
|
|
|
usertype tinyint not null
|
|
|
|
|
,authname varchar(50)
|
|
|
|
|
,menuno int not null
|
|
|
|
|
,isdel tinyint not null
|
|
|
|
|
,cdt datetime not null,cno bigint not NULL,udt datetime not null,uno bigint not NULL,uip varchar(50) not NULL
|
|
|
|
|
,primary key(usertype,menuno));
|
|
|
|
|
|
|
|
|
|
create table paycart (
|
|
|
|
|
pcno bigint auto_increment not null
|
|
|
|
|
,isgroup tinyint not null
|
|
|
|
|
,ptype tinyint not null
|
|
|
|
|
,itemno bigint not null
|
|
|
|
|
,isrefund tinyint not null
|
|
|
|
|
,cmno bigint
|
|
|
|
|
,userno int
|
|
|
|
|
,pcnt smallint not null
|
|
|
|
|
,status tinyint not null
|
|
|
|
|
,fgno bigint
|
|
|
|
|
,ispay tinyint not null default 0
|
|
|
|
|
,cdt datetime not null,cno bigint not NULL,udt datetime not null,uno bigint not NULL,uip varchar(50) not NULL
|
|
|
|
|
,primary key(pcno));
|
|
|
|
|
|
|
|
|
|
create table paycartgroup (
|
|
|
|
|
pcno bigint not null
|
|
|
|
|
,userno int not null
|
|
|
|
|
,isdel tinyint not null
|
|
|
|
|
,cdt datetime not null,cno bigint not NULL,udt datetime not null,uno bigint not NULL,uip varchar(50) not NULL
|
|
|
|
|
,primary key(pcno,userno));
|
|
|
|
|
|
|
|
|
|
create table pay (
|
|
|
|
|
payno bigint auto_increment not null
|
|
|
|
|
,ptype tinyint not null
|
|
|
|
|
,ispg tinyint not null
|
|
|
|
|
,isgroup tinyint not null
|
|
|
|
|
,isexam tinyint not null
|
|
|
|
|
,userno int not null
|
|
|
|
|
,username varchar(50)
|
|
|
|
|
,pstatus tinyint not null
|
|
|
|
|
,isunpay tinyint
|
|
|
|
|
,refunding tinyint not null
|
|
|
|
|
,rstatus tinyint not null
|
|
|
|
|
,rstatustime datetime
|
|
|
|
|
,cshrcancelnum varchar (30)
|
|
|
|
|
,canceltime datetime
|
|
|
|
|
,cancelmsg varchar (100)
|
|
|
|
|
,cancelcnt tinyint
|
|
|
|
|
,paylimit datetime
|
|
|
|
|
,payresult varchar (100)
|
|
|
|
|
,payresultmsg varchar (100)
|
|
|
|
|
,vactnum varchar(50)
|
|
|
|
|
,vactbankcode varchar(10)
|
|
|
|
|
,vactbankname varchar(20)
|
|
|
|
|
,vactname varchar(50)
|
|
|
|
|
,vactinname varchar(50)
|
|
|
|
|
,cshrrcode varchar (30)
|
|
|
|
|
,cshrtype varchar(10)
|
|
|
|
|
,cardquota varchar(2)
|
|
|
|
|
,payoktime datetime
|
|
|
|
|
,pgkey varchar (100)
|
|
|
|
|
,orgamt int not null
|
|
|
|
|
,discamt int not null
|
|
|
|
|
,deliamt mediumint not null
|
|
|
|
|
,isrefunddvr tinyint not null
|
|
|
|
|
,payamt int not null
|
|
|
|
|
,refundamt int not null
|
|
|
|
|
,isdvr tinyint not null default 0
|
|
|
|
|
,iscanceled tinyint not null default 0
|
2020-10-14 10:41:03 +09:00
|
|
|
,iscashrct tinyint null
|
|
|
|
|
,cashrcthp varbinary (200) null
|
2020-10-12 14:39:23 +09:00
|
|
|
,cdt datetime not null,cno bigint not NULL,udt datetime not null,uno bigint not NULL,uip varchar(50) not NULL
|
|
|
|
|
,primary key(payno));
|
|
|
|
|
|
|
|
|
|
create table payvbankin(
|
|
|
|
|
payno bigint not null
|
|
|
|
|
,pgkey varchar(50)
|
|
|
|
|
,inbankcode varchar(10)
|
|
|
|
|
,indeal varchar(10)
|
|
|
|
|
,inymd varchar(8)
|
|
|
|
|
,inhms varchar(6)
|
|
|
|
|
,msgseq varchar (30)
|
|
|
|
|
,transseq varchar (30)
|
|
|
|
|
,vacct varchar(30)
|
|
|
|
|
,inamt int
|
|
|
|
|
,checkamt int
|
|
|
|
|
,isclose char(1)
|
|
|
|
|
,typemsg char(4)
|
|
|
|
|
,frombank varchar(20)
|
|
|
|
|
,fromname varchar(30)
|
|
|
|
|
,fromymd varchar(8)
|
|
|
|
|
,calcymd varchar(8)
|
|
|
|
|
,tranymd varchar(8)
|
|
|
|
|
,transcode varchar(4)
|
|
|
|
|
,korcode char(1)
|
|
|
|
|
,cshrymd char(20)
|
|
|
|
|
,cshrhms char(6)
|
|
|
|
|
,cshrcode varchar(10)
|
|
|
|
|
,cshrpgkey varchar(50)
|
|
|
|
|
,cshramt varchar (15)
|
|
|
|
|
,cdt datetime not null,cno bigint not NULL,udt datetime not null,uno bigint not NULL,uip varchar(50) not NULL
|
|
|
|
|
,primary key(payno));
|
|
|
|
|
|
|
|
|
|
create table paydata (
|
|
|
|
|
payno bigint not null
|
|
|
|
|
,payresult varchar (100)
|
|
|
|
|
,payresultmsg varchar (100)
|
|
|
|
|
,vactnum varchar(50)
|
|
|
|
|
,vactbankcode varchar(10)
|
|
|
|
|
,vactbankname varchar(20)
|
|
|
|
|
,vactname varchar(50)
|
|
|
|
|
,vactinname varchar(50)
|
|
|
|
|
,cshrrcode varchar (30)
|
|
|
|
|
,cshrtype varchar(10)
|
|
|
|
|
,cshrauthno varchar(30)
|
|
|
|
|
,cardquota varchar(2)
|
|
|
|
|
,cardquotatype tinyint not null
|
|
|
|
|
,cardeventcode varchar(30)
|
|
|
|
|
,cardnum varchar(50)
|
|
|
|
|
,iscardpoint tinyint not null
|
|
|
|
|
,cardcode varchar (10)
|
|
|
|
|
,cardbankcode varchar (10)
|
|
|
|
|
,cardprtccode varchar (10)
|
|
|
|
|
,checkflag varchar (10)
|
|
|
|
|
,ocbnum varchar (30)
|
|
|
|
|
,ocbappno varchar (20)
|
|
|
|
|
,ocbprice varchar (10)
|
|
|
|
|
,gsnum varchar (30)
|
|
|
|
|
,gsremain varchar (20)
|
|
|
|
|
,gsprice varchar (10)
|
|
|
|
|
,unum varchar (30)
|
|
|
|
|
,upoint varchar (20)
|
|
|
|
|
,uprice varchar (10)
|
|
|
|
|
,cancelresult text
|
|
|
|
|
,cdt datetime not null,cno bigint not NULL,udt datetime not null,uno bigint not NULL,uip varchar(50) not NULL
|
|
|
|
|
,primary key(payno));
|
|
|
|
|
|
|
|
|
|
create table paycertbook (
|
|
|
|
|
payno bigint not null
|
|
|
|
|
,bkno mediumint not null
|
|
|
|
|
,bcount tinyint not null
|
|
|
|
|
,cdt datetime not null,cno bigint not NULL,udt datetime not null,uno bigint not NULL,uip varchar(50) not NULL
|
|
|
|
|
,primary key(payno,bkno));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
create table payitem (
|
|
|
|
|
pino bigint auto_increment not null
|
|
|
|
|
,payno bigint not null
|
|
|
|
|
,ptype tinyint not null
|
|
|
|
|
,pcno int
|
|
|
|
|
,itemno bigint not null
|
|
|
|
|
,userno int
|
|
|
|
|
,pstatus tinyint not null
|
|
|
|
|
,rstatus tinyint not null
|
|
|
|
|
,pgkey varchar (100)
|
|
|
|
|
,cancelcode varchar (2)
|
|
|
|
|
,cancelmsg varchar (100)
|
|
|
|
|
,canceltype char (1)
|
|
|
|
|
,pcnt smallint not null
|
|
|
|
|
,orgamt int not null
|
|
|
|
|
,discamt int not null
|
|
|
|
|
,payamt int not null
|
|
|
|
|
,payamtcash int not null
|
|
|
|
|
,payamtcard int not null
|
|
|
|
|
,refundamt int not null
|
|
|
|
|
,refundtime datetime
|
|
|
|
|
,refundtimereal datetime
|
|
|
|
|
,refundinfo varchar (200)
|
|
|
|
|
,refundstatus tinyint
|
|
|
|
|
,isrebate tinyint not null
|
2020-10-14 10:41:03 +09:00
|
|
|
,rbank varchar (50) null
|
|
|
|
|
,rbankaccnum varbinary (200) null
|
|
|
|
|
,tbankuser varchar (30) null
|
2020-10-12 14:39:23 +09:00
|
|
|
,fgno bigint
|
|
|
|
|
,cartno bigint
|
|
|
|
|
,cdt datetime not null,cno bigint not NULL,udt datetime not null,uno bigint not NULL,uip varchar(50) not NULL
|
|
|
|
|
,primary key(pino));
|
|
|
|
|
|
2020-10-15 10:44:16 +09:00
|
|
|
create table payassign (
|
|
|
|
|
payno bigint not null
|
|
|
|
|
,asno mediumint not null
|
|
|
|
|
,asname varchar (100) not null
|
|
|
|
|
,ceoname varchar (50)
|
|
|
|
|
,brno char (10)
|
|
|
|
|
,eino varchar (30)
|
|
|
|
|
,btype varchar (50)
|
|
|
|
|
,bkind varchar (50)
|
|
|
|
|
,post char (6 )
|
|
|
|
|
,address1 varchar (200)
|
|
|
|
|
,address2 varchar (200)
|
|
|
|
|
,fgnobno bigint
|
|
|
|
|
,mname varchar (30)
|
|
|
|
|
,mphone varbinary (200)
|
|
|
|
|
,taxemail varbinary (200)
|
|
|
|
|
,cdt datetime not null,cno bigint not NULL,udt datetime not null,uno bigint not NULL,uip varchar(50) not NULL
|
|
|
|
|
,primary key(payno));
|
|
|
|
|
|
|
|
|
|
create table payusers (
|
|
|
|
|
payno bigint not null
|
|
|
|
|
,username varchar (50) not null
|
|
|
|
|
,rrnum varbinary (200)
|
|
|
|
|
,mobile varbinary (200)
|
|
|
|
|
,email varbinary (200)
|
|
|
|
|
,post char (6)
|
|
|
|
|
,address1 varchar (200)
|
|
|
|
|
,address2 varchar (200)
|
|
|
|
|
,isassignuser tinyint not null
|
|
|
|
|
,uduty varchar (20)
|
|
|
|
|
,slevel tinyint
|
|
|
|
|
,cdt datetime not null,cno bigint not NULL,udt datetime not null,uno bigint not NULL,uip varchar(50) not NULL
|
|
|
|
|
,primary key(payno));
|
|
|
|
|
|
2020-10-14 10:41:03 +09:00
|
|
|
|
2020-10-12 14:39:23 +09:00
|
|
|
create table paydvr (
|
|
|
|
|
payno bigint not null
|
|
|
|
|
,dvrcode varchar (20)
|
|
|
|
|
,codetime datetime
|
|
|
|
|
,isdvr tinyint not null
|
|
|
|
|
,rcvname varchar (30)
|
|
|
|
|
,telno varbinary (200)
|
|
|
|
|
,mobile varbinary (200)
|
|
|
|
|
,email varbinary (200)
|
|
|
|
|
,post char (6)
|
|
|
|
|
,address1 varchar (200)
|
|
|
|
|
,address2 varchar (200)
|
|
|
|
|
,dmemo varchar (300)
|
|
|
|
|
,cdt datetime not null,cno bigint not NULL,udt datetime not null,uno bigint not NULL,uip varchar(50) not NULL
|
|
|
|
|
,primary key(payno));
|
|
|
|
|
|
|
|
|
|
create table payrfd (
|
|
|
|
|
rfdno bigint auto_increment not null
|
|
|
|
|
,payno bigint not null
|
|
|
|
|
,rtext varchar (500)
|
|
|
|
|
,bankname varchar (50)
|
|
|
|
|
,bankno varbinary (200)
|
|
|
|
|
,bankowner varchar (50)
|
|
|
|
|
,isowner tinyint not null
|
|
|
|
|
,rstatus tinyint not null
|
|
|
|
|
,statustime datetime
|
|
|
|
|
,ramt int
|
2020-10-14 10:41:03 +09:00
|
|
|
,rreason tinyint not null
|
|
|
|
|
,ruser varchar (50) null
|
|
|
|
|
,rphone varbinary (200) null
|
|
|
|
|
,fgnor bigint not null
|
|
|
|
|
,fgnob bigint not null
|
|
|
|
|
,rback varchar(500) null
|
2020-10-12 14:39:23 +09:00
|
|
|
,cdt datetime not null,cno bigint not NULL,udt datetime not null,uno bigint not NULL,uip varchar(50) not NULL
|
|
|
|
|
,primary key(rfdno));
|
|
|
|
|
|
|
|
|
|
create table payrfditem (
|
|
|
|
|
rfdno bigint not null
|
|
|
|
|
,pino bigint not null
|
|
|
|
|
,cdt datetime not null,cno bigint not NULL,udt datetime not null,uno bigint not NULL,uip varchar(50) not NULL
|
|
|
|
|
,primary key(rfdno,pino));
|
|
|
|
|
|
|
|
|
|
create table payrfdlog (
|
|
|
|
|
payno bigint not null
|
|
|
|
|
,pino bigint
|
|
|
|
|
,refundamt int not null
|
|
|
|
|
,refunddate datetime not null
|
|
|
|
|
,dmemo varchar (200)
|
|
|
|
|
,pistatus tinyint not null
|
|
|
|
|
,cdt datetime not null,cno bigint not NULL,udt datetime not null,uno bigint not NULL,uip varchar(50) not NULL);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
create table paytax (
|
|
|
|
|
taxno bigint auto_increment not null
|
|
|
|
|
,payno bigint not null
|
|
|
|
|
,taxamt int not null
|
|
|
|
|
,pcnt tinyint not null
|
|
|
|
|
,asname varchar (50)
|
|
|
|
|
,ceoname varchar (50)
|
|
|
|
|
,brno char (10)
|
|
|
|
|
,grno char (13)
|
|
|
|
|
,btype varchar (50)
|
|
|
|
|
,bkind varchar (50)
|
|
|
|
|
,manname varchar (50)
|
|
|
|
|
,telno varbinary (200)
|
|
|
|
|
,email varbinary (200)
|
|
|
|
|
,taxdate datetime
|
|
|
|
|
,fgno bigint
|
|
|
|
|
,taxinfo text
|
|
|
|
|
,isreceipt tinyint not null
|
|
|
|
|
,iscancel tinyint not null
|
|
|
|
|
,cdt datetime not null,cno bigint not NULL,udt datetime not null,uno bigint not NULL,uip varchar(50) not NULL
|
|
|
|
|
,primary key(taxno));
|
|
|
|
|
|
|
|
|
|
create table paytaxitem (
|
|
|
|
|
taxno bigint not null
|
|
|
|
|
,pino bigint not null
|
|
|
|
|
,cdt datetime not null,cno bigint not NULL,udt datetime not null,uno bigint not NULL,uip varchar(50) not NULL
|
|
|
|
|
,primary key(taxno,pino));
|
|
|
|
|
|
|
|
|
|
create table lect (
|
|
|
|
|
lectno bigint auto_increment not null
|
|
|
|
|
,cmno int not null
|
|
|
|
|
,payno bigint
|
|
|
|
|
,pino bigint
|
|
|
|
|
,userno int not null
|
|
|
|
|
,status tinyint not null
|
2020-10-14 10:41:03 +09:00
|
|
|
,isready tinyint null
|
2020-10-12 14:39:23 +09:00
|
|
|
,oktime datetime
|
|
|
|
|
,iscomplete tinyint
|
|
|
|
|
,orgcmno int
|
|
|
|
|
,attrate int not null
|
|
|
|
|
,isrebate tinyint not null
|
|
|
|
|
,ispc tinyint not null
|
|
|
|
|
,pcno int
|
|
|
|
|
,isjoin tinyint not null
|
|
|
|
|
,fgno bigint
|
|
|
|
|
,apoint float (5,2)
|
|
|
|
|
,mpoint float (5,2)
|
|
|
|
|
,fpoint float (5,2)
|
|
|
|
|
,spoint float (5,2)
|
|
|
|
|
,dpoint float (5,2)
|
|
|
|
|
,tpoint float (5,2)
|
|
|
|
|
,ischanged tinyint not null
|
|
|
|
|
,stime datetime
|
|
|
|
|
,etime datetime
|
|
|
|
|
,sip varchar (50)
|
|
|
|
|
,eip varchar (50)
|
|
|
|
|
,ispcs tinyint
|
|
|
|
|
,ispce tinyint
|
|
|
|
|
,fgno2 bigint
|
|
|
|
|
,cdt datetime not null,cno bigint not NULL,udt datetime not null,uno bigint not NULL,uip varchar(50) not NULL
|
|
|
|
|
,primary key(lectno));
|
|
|
|
|
|
|
|
|
|
create table lectinning (
|
|
|
|
|
lectno bigint not null
|
|
|
|
|
,cmino bigint not null
|
|
|
|
|
,totstudy mediumint not null
|
|
|
|
|
,stime datetime
|
|
|
|
|
,etime datetime
|
|
|
|
|
,sip varchar (50)
|
|
|
|
|
,eip varchar (50)
|
|
|
|
|
,ispcs tinyint
|
|
|
|
|
,ispce tinyint
|
|
|
|
|
,istatus tinyint
|
|
|
|
|
,isokmid tinyint not null default 0
|
|
|
|
|
,finishtime datetime
|
|
|
|
|
,statustime datetime
|
|
|
|
|
,statusreason varchar (100)
|
|
|
|
|
,statususerno int
|
|
|
|
|
,pseq tinyint not null default 1
|
|
|
|
|
,psec smallint
|
|
|
|
|
,cdt datetime not null,cno bigint not NULL,udt datetime not null,uno bigint not NULL,uip varchar(50) not NULL
|
|
|
|
|
,primary key(lectno,cmino));
|
|
|
|
|
|
|
|
|
|
create table lectinningpage (
|
|
|
|
|
logno bigint auto_increment not null
|
|
|
|
|
,lectno bigint not null
|
|
|
|
|
,cmino bigint not null
|
|
|
|
|
,cpno int not null
|
|
|
|
|
,totstudy mediumint not null
|
|
|
|
|
,stime datetime not null
|
|
|
|
|
,etime datetime not null
|
|
|
|
|
,sip varchar(50)
|
|
|
|
|
,eip varchar(50)
|
|
|
|
|
,ispc tinyint not null
|
|
|
|
|
,webkitinfo varchar(500)
|
|
|
|
|
,cdt datetime not null,cno bigint not NULL,udt datetime not null,uno bigint not NULL,uip varchar(50) not NULL
|
|
|
|
|
,primary key(logno));
|
|
|
|
|
|
|
|
|
|
create table lectex (
|
|
|
|
|
lectno bigint not null
|
|
|
|
|
,exno int not null
|
|
|
|
|
,estart datetime
|
|
|
|
|
,eend datetime
|
|
|
|
|
,eip varchar(50)
|
|
|
|
|
,tpoint smallint not null
|
|
|
|
|
,recount tinyint not null
|
|
|
|
|
,rechecktime datetime
|
|
|
|
|
,entercount tinyint
|
|
|
|
|
,cblock tinyint not null default 0
|
|
|
|
|
,cdt datetime not null,cno bigint not NULL,udt datetime not null,uno bigint not NULL,uip varchar(50) not NULL
|
|
|
|
|
,primary key(lectno,exno));
|
|
|
|
|
|
|
|
|
|
create table lectexq (
|
|
|
|
|
lectno bigint not null
|
|
|
|
|
,exno int not null
|
|
|
|
|
,eqno int not null
|
|
|
|
|
,atext varchar (2000)
|
|
|
|
|
,qinos varchar (500)
|
|
|
|
|
,cpoint tinyint not null
|
|
|
|
|
,dpoint tinyint not null
|
|
|
|
|
,iscorrect tinyint
|
|
|
|
|
,qseq tinyint not null
|
|
|
|
|
,rechecktime datetime
|
|
|
|
|
,cdt datetime not null,cno bigint not NULL,udt datetime not null,uno bigint not NULL,uip varchar(50) not NULL
|
|
|
|
|
,primary key(lectno,exno,eqno));
|
|
|
|
|
|
|
|
|
|
create table lectsd (
|
|
|
|
|
lectno bigint not null
|
|
|
|
|
,sdno int not null
|
|
|
|
|
,atext mediumtext
|
|
|
|
|
,fgno bigint
|
|
|
|
|
,copyrate tinyint
|
|
|
|
|
,iscopy tinyint not null
|
|
|
|
|
,cpoint tinyint
|
|
|
|
|
,feedb varchar (1000)
|
|
|
|
|
,submittime datetime
|
|
|
|
|
,submitip varchar (50)
|
|
|
|
|
,checktime datetime
|
|
|
|
|
,checkip varchar (50)
|
|
|
|
|
,cdt datetime not null,cno bigint not NULL,udt datetime not null,uno bigint not NULL,uip varchar(50) not NULL
|
|
|
|
|
,primary key(lectno,sdno));
|
|
|
|
|
|
|
|
|
|
create table lectsdboard (
|
|
|
|
|
bno bigint auto_increment not null
|
|
|
|
|
,lectno bigint not null
|
|
|
|
|
,sdno int not null
|
|
|
|
|
,subject varchar (200) not null
|
|
|
|
|
,contents text not null
|
|
|
|
|
,fgno bigint
|
|
|
|
|
,rcount int not null default 0
|
|
|
|
|
,cip varchar(50)
|
|
|
|
|
,isdel tinyint not null default 0
|
|
|
|
|
,cdt datetime not null,cno bigint not NULL,udt datetime not null,uno bigint not NULL,uip varchar(50) not NULL
|
|
|
|
|
,primary key(bno));
|
|
|
|
|
|
|
|
|
|
create table lectsdboardcmt (
|
|
|
|
|
bcno bigint auto_increment not null
|
|
|
|
|
,bno bigint not null
|
|
|
|
|
,ctext varchar (500) not null
|
|
|
|
|
,isdel tinyint not null
|
|
|
|
|
,cdt datetime not null,cno bigint not NULL,udt datetime not null,uno bigint not NULL,uip varchar(50) not NULL
|
|
|
|
|
,primary key(bcno));
|
|
|
|
|
|
|
|
|
|
create table lectrs (
|
|
|
|
|
lectno bigint not null
|
|
|
|
|
,rsno int not null
|
|
|
|
|
,rscno mediumint not null
|
|
|
|
|
,rscqno int not null
|
|
|
|
|
,qno int not null
|
|
|
|
|
,atext varchar (2000)
|
|
|
|
|
,cdt datetime not null,cno bigint not NULL,udt datetime not null,uno bigint not NULL,uip varchar(50) not NULL
|
|
|
|
|
,primary key(lectno,rsno,rscno,rscqno));
|
|
|
|
|
|
|
|
|
|
create table scdlect (
|
|
|
|
|
scdno tinyint not null
|
|
|
|
|
,dday tinyint not null
|
|
|
|
|
,dtime tinyint not null
|
|
|
|
|
,istalk tinyint not null
|
|
|
|
|
,isemail tinyint not null
|
|
|
|
|
,isuse tinyint not null
|
|
|
|
|
,cdt datetime not null,cno bigint not NULL,udt datetime not null,uno bigint not NULL,uip varchar(50) not NULL
|
|
|
|
|
,primary key(scdno));
|
|
|
|
|
|
|
|
|
|
create table scdlectlog (
|
|
|
|
|
userno bigint not null
|
|
|
|
|
,scdno tinyint not null
|
|
|
|
|
,dday tinyint not null
|
|
|
|
|
,dtime tinyint not null
|
|
|
|
|
,istalk tinyint not null
|
|
|
|
|
,isemail tinyint not null
|
|
|
|
|
,isuse tinyint not null
|
|
|
|
|
,cdt datetime not null,cno bigint not NULL,udt datetime not null,uno bigint not NULL,uip varchar(50) not NULL);
|
|
|
|
|
|
|
|
|
|
create table alarms (
|
|
|
|
|
alno bigint not null auto_increment
|
|
|
|
|
,userno int not null
|
|
|
|
|
,atime datetime not null
|
|
|
|
|
,scdno tinyint not null
|
|
|
|
|
,cmexno int not null
|
|
|
|
|
,dday tinyint not null
|
|
|
|
|
,isdel tinyint not null
|
|
|
|
|
,cdt datetime not null,cno bigint not NULL,udt datetime not null,uno bigint not NULL,uip varchar(50) not NULL
|
|
|
|
|
,primary key(alno));
|
|
|
|
|
|
|
|
|
|
create table exam (
|
|
|
|
|
exno int auto_increment not null
|
|
|
|
|
,cgno smallint not null
|
|
|
|
|
,exname varchar (100) not null
|
|
|
|
|
,infee int not null
|
|
|
|
|
,outfee int not null
|
|
|
|
|
,certcc smallint not null
|
|
|
|
|
,certgradecc smallint not null
|
|
|
|
|
,rstime datetime not null
|
|
|
|
|
,retime datetime not null
|
|
|
|
|
,estime datetime not null
|
|
|
|
|
,eetime datetime not null
|
|
|
|
|
,elocation varchar (200) not null
|
|
|
|
|
,certdate datetime not null
|
|
|
|
|
,certindate datetime not null
|
|
|
|
|
,introhtml mediumtext not null
|
|
|
|
|
,isopen tinyint not null
|
|
|
|
|
,isresultopen tinyint not null default 0
|
|
|
|
|
,isscored tinyint not null
|
|
|
|
|
,fgno bigint
|
|
|
|
|
,isdel tinyint not null default 0
|
|
|
|
|
,cdt datetime not null,cno bigint not NULL,udt datetime not null,uno bigint not NULL,uip varchar(50) not NULL
|
|
|
|
|
,primary key(exno));
|
|
|
|
|
|
|
|
|
|
create table examuser (
|
|
|
|
|
exno int not null
|
|
|
|
|
,userno int not null
|
|
|
|
|
,status tinyint not null
|
|
|
|
|
,payno bigint
|
|
|
|
|
,pino bigint
|
|
|
|
|
,pstatus tinyint not null
|
|
|
|
|
,epoint1 float(5,1)
|
|
|
|
|
,epoint2 float(5,1)
|
|
|
|
|
,epoint3 float(5,1)
|
|
|
|
|
,avrg float
|
|
|
|
|
,ispass tinyint
|
|
|
|
|
,certdate datetime not null
|
|
|
|
|
,certindate datetime not null
|
|
|
|
|
,cdt datetime not null,cno bigint not NULL,udt datetime not null,uno bigint not NULL,uip varchar(50) not NULL
|
|
|
|
|
,primary key(exno,userno));
|
|
|
|
|
|
|
|
|
|
create table examuserdelbk (
|
|
|
|
|
exno int not null
|
|
|
|
|
,userno int not null
|
|
|
|
|
,status tinyint not null
|
|
|
|
|
,payno bigint
|
|
|
|
|
,pino bigint
|
|
|
|
|
,pstatus tinyint not null
|
|
|
|
|
,epoint1 float(5,1)
|
|
|
|
|
,epoint2 float(5,1)
|
|
|
|
|
,epoint3 float(5,1)
|
|
|
|
|
,avrg float
|
|
|
|
|
,ispass tinyint
|
|
|
|
|
,certdate datetime not null
|
|
|
|
|
,certindate datetime not null
|
|
|
|
|
,cdt datetime not null,cno bigint not NULL,udt datetime not null,uno bigint not NULL,uip varchar(50) not NULL);
|
|
|
|
|
|
|
|
|
|
create table examuserrenew (
|
|
|
|
|
exno int not null
|
|
|
|
|
,userno int not null
|
|
|
|
|
,certtime datetime not null
|
|
|
|
|
,certdate datetime not null
|
|
|
|
|
,certindate datetime not null
|
|
|
|
|
,renewreason varchar (100)
|
|
|
|
|
,certidx mediumint not null
|
|
|
|
|
,isfirst tinyint not null
|
|
|
|
|
,cdt datetime not null,cno bigint not NULL,udt datetime not null,uno bigint not NULL,uip varchar(50) not NULL
|
|
|
|
|
,primary key(exno,userno,certtime));
|
|
|
|
|
|
|
|
|
|
create table emailsend (
|
|
|
|
|
sendno bigint auto_increment not null
|
|
|
|
|
,etitle varchar (500) not null
|
|
|
|
|
,sname varchar (100)
|
|
|
|
|
,semail varchar (50)
|
|
|
|
|
,ehtml mediumtext not null
|
|
|
|
|
,fgno bigint
|
|
|
|
|
,cmno int
|
|
|
|
|
,rcvs mediumtext not null
|
|
|
|
|
,sendeds mediumtext
|
|
|
|
|
,reademails mediumtext not null default ''
|
|
|
|
|
,rcvcount int not null
|
|
|
|
|
,readcount int not null default 0
|
|
|
|
|
,isdel tinyint not null default 1
|
|
|
|
|
,cdt datetime not null,cno bigint not NULL,udt datetime not null,uno bigint not NULL,uip varchar(50) not NULL
|
|
|
|
|
,primary key(sendno));
|
|
|
|
|
|
|
|
|
|
create table emailban (
|
|
|
|
|
sendno bigint not null
|
|
|
|
|
,email varchar (100) not null
|
|
|
|
|
,cdt datetime not null,cno bigint not NULL,udt datetime not null,uno bigint not NULL,uip varchar(50) not NULL
|
|
|
|
|
,primary key(sendno,email));
|
|
|
|
|
|
|
|
|
|
create table emailbanpool (
|
|
|
|
|
email varchar (100) not null
|
|
|
|
|
,cdt datetime not null,cno bigint not NULL,udt datetime not null,uno bigint not NULL,uip varchar(50) not NULL
|
|
|
|
|
,primary key(email));
|
|
|
|
|
|
|
|
|
|
create table memo (
|
|
|
|
|
mno bigint auto_increment not null
|
|
|
|
|
,pmno bigint
|
|
|
|
|
,cmno int
|
|
|
|
|
,mtitle varchar (500) not null
|
|
|
|
|
,mcontents text not null
|
|
|
|
|
,fgno bigint
|
|
|
|
|
,isdel tinyint not null
|
|
|
|
|
,cdt datetime not null,cno bigint not NULL,udt datetime not null,uno bigint not NULL,uip varchar(50) not NULL
|
|
|
|
|
,primary key(mno));
|
|
|
|
|
|
|
|
|
|
create table memouser (
|
|
|
|
|
mno bigint not null
|
|
|
|
|
,userno int not null
|
|
|
|
|
,isread tinyint not null default 0
|
|
|
|
|
,rdate datetime
|
|
|
|
|
,isdel tinyint not null
|
|
|
|
|
,cdt datetime not null,cno bigint not NULL,udt datetime not null,uno bigint not NULL,uip varchar(50) not NULL
|
|
|
|
|
,primary key(mno,userno));
|
|
|
|
|
|
|
|
|
|
create table sms (
|
|
|
|
|
mno bigint auto_increment not null
|
|
|
|
|
,cmno int
|
|
|
|
|
,mcontents text not null
|
|
|
|
|
,cdt datetime not null,cno bigint not NULL,udt datetime not null,uno bigint not NULL,uip varchar(50) not NULL
|
|
|
|
|
,primary key(mno));
|
|
|
|
|
|
|
|
|
|
create table smsuser (
|
|
|
|
|
mno bigint not null
|
|
|
|
|
,userno bigint not null
|
|
|
|
|
,smstype varchar(10)
|
|
|
|
|
,isok tinyint not null
|
|
|
|
|
,msgid varchar (50)
|
|
|
|
|
,message varchar (1000)
|
|
|
|
|
,cdt datetime not null,cno bigint not NULL,udt datetime not null,uno bigint not NULL,uip varchar(50) not NULL
|
|
|
|
|
,primary key(mno,userno));
|
|
|
|
|
|
|
|
|
|
create table banner (
|
|
|
|
|
bno tinyint auto_increment
|
|
|
|
|
,btitle varchar (100) not null
|
|
|
|
|
,fgno bigint not null
|
|
|
|
|
,fgno2 bigint not null
|
|
|
|
|
,bdesc varchar (100)
|
|
|
|
|
,burl varchar (100)
|
|
|
|
|
,ismain tinyint not null
|
|
|
|
|
,bseq tinyint not null
|
|
|
|
|
,isopen tinyint not null
|
|
|
|
|
,cdt datetime not null,cno bigint not NULL,udt datetime not null,uno bigint not NULL,uip varchar(50) not NULL
|
|
|
|
|
,primary key(bno));
|
|
|
|
|
|
|
|
|
|
create table popup (
|
|
|
|
|
pno smallint auto_increment not null
|
|
|
|
|
,ptitle varchar (100) not null
|
|
|
|
|
,pcontents text not null
|
|
|
|
|
,toppx smallint not null default 0
|
|
|
|
|
,leftpx smallint not null default 0
|
|
|
|
|
,pwidth smallint not null
|
|
|
|
|
,pheight smallint not null
|
|
|
|
|
,purl varchar (100)
|
|
|
|
|
,zindex tinyint not null
|
|
|
|
|
,isopen tinyint not null
|
|
|
|
|
,cdt datetime not null,cno bigint not NULL,udt datetime not null,uno bigint not NULL,uip varchar(50) not NULL
|
|
|
|
|
,primary key(pno));
|
|
|
|
|
|
|
|
|
|
create table menupage (
|
|
|
|
|
pno smallint auto_increment not null
|
|
|
|
|
,ppno smallint
|
|
|
|
|
,pdepth tinyint not null
|
|
|
|
|
,pagetype tinyint not null
|
|
|
|
|
,bmno smallint
|
|
|
|
|
,porder tinyint not null
|
|
|
|
|
,pagename varchar (100) not null
|
|
|
|
|
,pagedesc varchar (100)
|
|
|
|
|
,pageurl varchar (50)
|
|
|
|
|
,pagehtml text
|
|
|
|
|
,isopen tinyint not null
|
|
|
|
|
,usertype tinyint not null
|
|
|
|
|
,refcode varchar (50 )
|
|
|
|
|
,imagecode varchar (100 )
|
|
|
|
|
,bgtitle varchar (100)
|
|
|
|
|
,bgdesc varchar (1000 )
|
|
|
|
|
,cdt datetime not null,cno bigint not NULL,udt datetime not null,uno bigint not NULL,uip varchar(50) not NULL
|
|
|
|
|
,primary key(pno));
|
|
|
|
|
|
|
|
|
|
create table actlog (
|
|
|
|
|
logtype tinyint not null
|
|
|
|
|
,logtarget tinyint not null
|
|
|
|
|
,userno bigint
|
|
|
|
|
,logdata text
|
|
|
|
|
,cdt datetime not null,cno bigint not NULL,udt datetime not null,uno bigint not NULL,uip varchar(50) not NULL);
|
|
|
|
|
|
|
|
|
|
create table loginlog (
|
|
|
|
|
logno bigint auto_increment not null
|
|
|
|
|
,logsite tinyint not null
|
|
|
|
|
,userno int
|
|
|
|
|
,loginstatus tinyint not null
|
|
|
|
|
,logindata varchar (50)
|
|
|
|
|
,cdt datetime not null,cno bigint not NULL,udt datetime not null,uno bigint not NULL,uip varchar(50) not NULL
|
|
|
|
|
,primary key(logno));
|
|
|
|
|
|
|
|
|
|
create table cmcalc (
|
|
|
|
|
cmno int not null
|
|
|
|
|
,infee int not null
|
|
|
|
|
,outfee int not null
|
|
|
|
|
,feeloc int not null
|
|
|
|
|
,feebkpr int not null
|
|
|
|
|
,feebrt int not null
|
|
|
|
|
,feemat int not null
|
|
|
|
|
,feefoo int not null
|
|
|
|
|
,feeetc int not null
|
|
|
|
|
,prtcnt smallint not null
|
|
|
|
|
,cdt datetime not null,cno bigint not NULL,udt datetime not null,uno bigint not NULL,uip varchar(50) not NULL
|
|
|
|
|
,primary key(cmno));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
create table exceldata (
|
|
|
|
|
userno int not null
|
|
|
|
|
,col1 text
|
|
|
|
|
,col2 text
|
|
|
|
|
,col3 text
|
|
|
|
|
,col4 text
|
|
|
|
|
,col5 text
|
|
|
|
|
,col6 text
|
|
|
|
|
,col7 text
|
|
|
|
|
,col8 text
|
|
|
|
|
,col9 text
|
|
|
|
|
,col10 text
|
|
|
|
|
,col11 text
|
|
|
|
|
,col12 text
|
|
|
|
|
,col13 text
|
|
|
|
|
,col14 text
|
|
|
|
|
,col15 text
|
|
|
|
|
,col16 text
|
|
|
|
|
,col17 text
|
|
|
|
|
,col18 text
|
|
|
|
|
,col19 text
|
|
|
|
|
,col20 text);
|
|
|
|
|
|
|
|
|
|
create table pagelog (
|
|
|
|
|
logsite tinyint not null
|
|
|
|
|
,userno int
|
|
|
|
|
,menuno int
|
|
|
|
|
,pno smallint
|
|
|
|
|
,loginfo varchar(1000)
|
|
|
|
|
,cdt datetime not null,cno bigint not NULL,udt datetime not null,uno bigint not NULL,uip varchar(50) not NULL);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
create table edub2b (
|
|
|
|
|
eduno int auto_increment not null
|
|
|
|
|
,etype tinyint not null
|
|
|
|
|
,userno int not null
|
|
|
|
|
,edate datetime
|
|
|
|
|
,esubject varchar (500)
|
|
|
|
|
,etarget varchar (500)
|
|
|
|
|
,ecount smallint not null
|
|
|
|
|
,eplace varchar (100)
|
|
|
|
|
,ecomment varchar (500)
|
|
|
|
|
,compname varchar (200)
|
|
|
|
|
,ceoname varchar (50)
|
|
|
|
|
,brno char (10 )
|
|
|
|
|
,addr varchar (200 )
|
|
|
|
|
,btype varchar (50 )
|
|
|
|
|
,bkind varchar (50 )
|
|
|
|
|
,manname varchar (50 )
|
|
|
|
|
,email varbinary (200)
|
|
|
|
|
,telno varbinary (200)
|
|
|
|
|
,fgno bigint
|
|
|
|
|
,cdt datetime not null,cno bigint not NULL,udt datetime not null,uno bigint not NULL,uip varchar(50) not NULL
|
|
|
|
|
,primary key(eduno));
|
|
|
|
|
|
|
|
|
|
CREATE TABLE npsystem(
|
|
|
|
|
daokey VARCHAR(100) NOT NULL
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
create table usercheck(
|
|
|
|
|
userno int not null
|
|
|
|
|
,checkkey int not null
|
|
|
|
|
,primary key(userno));
|
|
|
|
|
|
|
|
|
|
create table authkey (
|
|
|
|
|
authtype tinyint not null
|
|
|
|
|
,userno int not null
|
|
|
|
|
,jobkey varchar (100)
|
|
|
|
|
,randkey int not null
|
|
|
|
|
,keytime datetime not null
|
|
|
|
|
,primary key(authtype,userno));
|
|
|
|
|
|