This commit is contained in:
parent
86845e5c14
commit
275362ef0f
|
|
@ -35,10 +35,10 @@ create table assign (
|
||||||
,isjoin tinyint not null
|
,isjoin tinyint not null
|
||||||
,joinyear char (4)
|
,joinyear char (4)
|
||||||
,joinprice int not null
|
,joinprice int not null
|
||||||
|
|
||||||
,asname varchar (100) not null
|
,asname varchar (100) not null
|
||||||
,ceoname varchar (50)
|
,ceoname varchar (50)
|
||||||
,brno char (10)
|
,brno char (10)
|
||||||
|
,eino varchar (30) null
|
||||||
,grno char (13)
|
,grno char (13)
|
||||||
,btype varchar (50)
|
,btype varchar (50)
|
||||||
,bkind varchar (50)
|
,bkind varchar (50)
|
||||||
|
|
@ -64,6 +64,9 @@ create table assign (
|
||||||
,sitefooter text
|
,sitefooter text
|
||||||
,siteip varchar(50)
|
,siteip varchar(50)
|
||||||
,ismain tinyint not null default 0
|
,ismain tinyint not null default 0
|
||||||
|
,mname varchar (30) null
|
||||||
|
,mphone varbinary (200) null
|
||||||
|
,taxemail varbinary (200) null
|
||||||
,isdel 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
|
,cdt datetime not null,cno bigint not NULL,udt datetime not null,uno bigint not NULL,uip varchar(50) not NULL
|
||||||
,primary key(asno));
|
,primary key(asno));
|
||||||
|
|
@ -121,11 +124,13 @@ create table users (
|
||||||
,userpass varchar (200)
|
,userpass varchar (200)
|
||||||
,username varchar (50) not null
|
,username varchar (50) not null
|
||||||
,usernameeng varchar (50)
|
,usernameeng varchar (50)
|
||||||
|
,rrnum varbinary (200) null
|
||||||
,gender tinyint
|
,gender tinyint
|
||||||
,birthday varbinary(200) null
|
,birthday varbinary(200) null
|
||||||
,email varbinary (200)
|
,email varbinary (200)
|
||||||
,isacceptemail tinyint not null
|
,isacceptemail tinyint not null
|
||||||
,mobile varbinary (200)
|
,mobile varbinary (200)
|
||||||
|
,isacceptmobile tinyint not null
|
||||||
,telno varbinary (200)
|
,telno varbinary (200)
|
||||||
,asno mediumint
|
,asno mediumint
|
||||||
,pasname varchar (50)
|
,pasname varchar (50)
|
||||||
|
|
@ -152,6 +157,8 @@ create table users (
|
||||||
,eetime datetime
|
,eetime datetime
|
||||||
,kfcfyear tinyint
|
,kfcfyear tinyint
|
||||||
,isassignuser tinyint not null default 1
|
,isassignuser tinyint not null default 1
|
||||||
|
,uduty varchar (20) null
|
||||||
|
,slevel tinyint null
|
||||||
,edus varchar (10)
|
,edus varchar (10)
|
||||||
,remotekey int
|
,remotekey int
|
||||||
,cdt datetime not null,cno bigint not NULL,udt datetime not null,uno bigint not NULL,uip varchar(50) not NULL
|
,cdt datetime not null,cno bigint not NULL,udt datetime not null,uno bigint not NULL,uip varchar(50) not NULL
|
||||||
|
|
@ -824,7 +831,40 @@ create table payitem (
|
||||||
,cdt datetime not null,cno bigint not NULL,udt datetime not null,uno bigint not NULL,uip varchar(50) 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(pino));
|
,primary key(pino));
|
||||||
|
|
||||||
create
|
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));
|
||||||
|
|
||||||
|
|
||||||
create table paydvr (
|
create table paydvr (
|
||||||
payno bigint not null
|
payno bigint not null
|
||||||
|
|
|
||||||
|
|
@ -109,6 +109,11 @@ alter table payitem add constraint foreign key fkpayitemu(userno) references use
|
||||||
alter table payitem add constraint foreign key fkpayitemcmpc(pcno) references cmpc(pcno);
|
alter table payitem add constraint foreign key fkpayitemcmpc(pcno) references cmpc(pcno);
|
||||||
alter table payitem add constraint foreign key fkpayitemfgno(fgno) references filegroup(fgno);
|
alter table payitem add constraint foreign key fkpayitemfgno(fgno) references filegroup(fgno);
|
||||||
alter table payitem add constraint foreign key fkpayitempaycart(cartno) references paycart(pcno);
|
alter table payitem add constraint foreign key fkpayitempaycart(cartno) references paycart(pcno);
|
||||||
|
|
||||||
|
alter table payassign add constraint foreign key fkpayassignpay(payno) references pay(payno)
|
||||||
|
alter table payassign add constraint foreign key fkpayassignassign(asno) references assign(asno)
|
||||||
|
alter table payusers add constraint foreign key fkpayuserspay(payno) references pay(payno)
|
||||||
|
|
||||||
alter table paydvr add constraint foreign key fkpaydvrpay(payno) references pay(payno);
|
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 fkpayrfdpay(payno) references pay(payno);
|
||||||
|
|
|
||||||
|
|
@ -1,13 +1,13 @@
|
||||||
|
|
||||||
insert into users(userno,usertype,userkind,userid,userpass
|
insert into users(userno,usertype,userkind,userid,userpass
|
||||||
,username,usernameeng,email,isacceptemail,mobile
|
,username,usernameeng,email,isacceptemail,mobile,isacceptmobile
|
||||||
,telno,asno,depart,ccposition,fgnoprofile
|
,telno,asno,depart,ccposition,fgnoprofile
|
||||||
,ccjobs,userpno,bankname,bankno,post
|
,ccjobs,userpno,bankname,bankno,post
|
||||||
,address1,address2,introhtml,status,logintime
|
,address1,address2,introhtml,status,logintime
|
||||||
,send335time,pwcalltime,pwcallno,jointype
|
,send335time,pwcalltime,pwcallno,jointype
|
||||||
,cdt,cno,udt,uno,uip)
|
,cdt,cno,udt,uno,uip)
|
||||||
values (1,91,null,'sysadmin',SHA2('sysadm20201@#', 512)
|
values (1,91,null,'sysadmin',SHA2('sysadm20201@#', 512)
|
||||||
,'통합관리자','superadmin',hex(aes_encrypt('', 'n_p123@!')),0,hex(aes_encrypt('', 'n_p123@!'))
|
,'통합관리자','superadmin',hex(aes_encrypt('', 'n_p123@!')),0,hex(aes_encrypt('', 'n_p123@!')),0
|
||||||
,hex(aes_encrypt('', 'n_p123@!')),null,null,null,null
|
,hex(aes_encrypt('', 'n_p123@!')),null,null,null,null
|
||||||
,null,null,null,null,null
|
,null,null,null,null,null
|
||||||
,null,null,null,1,now()
|
,null,null,null,1,now()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue