This commit is contained in:
parent
318c02685c
commit
4c45ec8e1c
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue