From 4c45ec8e1c1f94c92a6a1a4e5935e4c7d4aeccbc Mon Sep 17 00:00:00 2001 From: hodong13 Date: Wed, 14 Oct 2020 01:41:03 +0000 Subject: [PATCH] --- Dao/DB/DB1.Scheme.txt | 19 +++++++++++++++++++ Dao/DB/DB1.SchemeFK.txt | 2 ++ Dao/DB/DB3.InitailData.txt | 4 ++-- 3 files changed, 23 insertions(+), 2 deletions(-) diff --git a/Dao/DB/DB1.Scheme.txt b/Dao/DB/DB1.Scheme.txt index df06644..b6f4f62 100644 --- a/Dao/DB/DB1.Scheme.txt +++ b/Dao/DB/DB1.Scheme.txt @@ -114,12 +114,15 @@ create table cmt ( create table users ( userno int auto_increment not null ,usertype tinyint not null + ,jointype tinyint not null + ,snsid varchar (50) null ,userkind tinyint ,userid varchar (50) ,userpass varchar (200) ,username varchar (50) not null ,usernameeng varchar (50) ,gender tinyint + ,birthday varbinary(200) null ,email varbinary (200) ,isacceptemail tinyint not null ,mobile varbinary (200) @@ -128,6 +131,7 @@ create table users ( ,pasname varchar (50) ,depart varchar (50) ,ccposition smallint + ,ccpositionetc varchar(50) null ,fgnoprofile bigint ,ccjobs varchar(200) ,userpno varbinary (200) @@ -401,6 +405,7 @@ create table cm ( ,typeedu varchar(100) null ,typegrade varchar(100) null ,typejob varchar(100) null + ,isoffabs tinyint 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(cmno)); @@ -700,6 +705,8 @@ create table pay ( ,refundamt int not null ,isdvr tinyint not null default 0 ,iscanceled tinyint not null default 0 + ,iscashrct tinyint null + ,cashrcthp varbinary (200) 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)); @@ -800,11 +807,16 @@ create table payitem ( ,refundinfo varchar (200) ,refundstatus tinyint ,isrebate tinyint not null + ,rbank varchar (50) null + ,rbankaccnum varbinary (200) null + ,tbankuser varchar (30) null ,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)); +create + create table paydvr ( payno bigint not null ,dvrcode varchar (20) @@ -832,6 +844,12 @@ create table payrfd ( ,rstatus tinyint not null ,statustime datetime ,ramt int + ,rreason tinyint not null + ,ruser varchar (50) null + ,rphone varbinary (200) null + ,fgnor bigint not null + ,fgnob bigint not null + ,rback varchar(500) 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)); @@ -886,6 +904,7 @@ create table lect ( ,pino bigint ,userno int not null ,status tinyint not null + ,isready tinyint null ,oktime datetime ,iscomplete tinyint ,orgcmno int diff --git a/Dao/DB/DB1.SchemeFK.txt b/Dao/DB/DB1.SchemeFK.txt index 49e54d7..9f86269 100644 --- a/Dao/DB/DB1.SchemeFK.txt +++ b/Dao/DB/DB1.SchemeFK.txt @@ -111,6 +111,8 @@ alter table payitem add constraint foreign key fkpayitempaycart(cartno) referenc alter table paydvr add constraint foreign key fkpaydvrpay(payno) references pay(payno); alter table payrfd add constraint foreign key fkpayrfdpay(payno) references pay(payno); +alter table payrfd add constraint foreign key fkpayrfdfgno(fgnor) references filegroup(fgno); +alter table payrfd add constraint foreign key fkpayrfdfgno2(fgnob) references filegroup(fgno); alter table payrfditem add constraint foreign key fkpayrfditempayrfd(rfdno) references payrfd(rfdno); alter table payrfditem add constraint foreign key fkpayrfditempi(pino) references payitem(pino); diff --git a/Dao/DB/DB3.InitailData.txt b/Dao/DB/DB3.InitailData.txt index 207a666..df3d67a 100644 --- a/Dao/DB/DB3.InitailData.txt +++ b/Dao/DB/DB3.InitailData.txt @@ -4,14 +4,14 @@ insert into users(userno,usertype,userkind,userid,userpass ,telno,asno,depart,ccposition,fgnoprofile ,ccjobs,userpno,bankname,bankno,post ,address1,address2,introhtml,status,logintime -,send335time,pwcalltime,pwcallno +,send335time,pwcalltime,pwcallno,jointype ,cdt,cno,udt,uno,uip) values (1,91,null,'sysadmin',SHA2('sysadm20201@#', 512) ,'통합관리자','superadmin',hex(aes_encrypt('', 'n_p123@!')),0,hex(aes_encrypt('', 'n_p123@!')) ,hex(aes_encrypt('', 'n_p123@!')),null,null,null,null ,null,null,null,null,null ,null,null,null,1,now() -,null,null,null +,null,null,null,0 ,now(),1,now(),1,'127.0.0.1'); insert into assign(ascode,isjoin,joinyear,joinprice,asname,ceoname,brno,grno,btype,bkind,salesamount,homeurl,mcount,aday,astype,asctg,askey,post,address1,address2,joindate,exitdate,status,issite,subdomain,sitename,sitelogo,sitefooter,ismain,isdel,cdt,cno,udt,uno,uip)