This commit is contained in:
hodong13 2020-10-15 01:44:16 +00:00
parent 86845e5c14
commit 275362ef0f
3 changed files with 49 additions and 4 deletions

View File

@ -35,10 +35,10 @@ create table assign (
,isjoin tinyint not null
,joinyear char (4)
,joinprice int not null
,asname varchar (100) not null
,ceoname varchar (50)
,brno char (10)
,eino varchar (30) null
,grno char (13)
,btype varchar (50)
,bkind varchar (50)
@ -64,6 +64,9 @@ create table assign (
,sitefooter text
,siteip varchar(50)
,ismain tinyint not null default 0
,mname varchar (30) null
,mphone varbinary (200) null
,taxemail varbinary (200) 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(asno));
@ -121,11 +124,13 @@ create table users (
,userpass varchar (200)
,username varchar (50) not null
,usernameeng varchar (50)
,rrnum varbinary (200) null
,gender tinyint
,birthday varbinary(200) null
,email varbinary (200)
,isacceptemail tinyint not null
,mobile varbinary (200)
,isacceptmobile tinyint not null
,telno varbinary (200)
,asno mediumint
,pasname varchar (50)
@ -152,6 +157,8 @@ create table users (
,eetime datetime
,kfcfyear tinyint
,isassignuser tinyint not null default 1
,uduty varchar (20) null
,slevel tinyint null
,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
@ -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
,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 (
payno bigint not null

View File

@ -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 fkpayitemfgno(fgno) references filegroup(fgno);
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 payrfd add constraint foreign key fkpayrfdpay(payno) references pay(payno);

View File

@ -1,13 +1,13 @@

insert into users(userno,usertype,userkind,userid,userpass
,username,usernameeng,email,isacceptemail,mobile
,username,usernameeng,email,isacceptemail,mobile,isacceptmobile
,telno,asno,depart,ccposition,fgnoprofile
,ccjobs,userpno,bankname,bankno,post
,address1,address2,introhtml,status,logintime
,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@!'))
,'통합관리자','superadmin',hex(aes_encrypt('', 'n_p123@!')),0,hex(aes_encrypt('', 'n_p123@!')),0
,hex(aes_encrypt('', 'n_p123@!')),null,null,null,null
,null,null,null,null,null
,null,null,null,1,now()