Skip to content
Snippets Groups Projects
Commit 388e0f07 authored by 소연 박's avatar 소연 박
Browse files

sql update

parent 4411f17a
Branches
No related tags found
No related merge requests found
Pipeline #8777 canceled
......@@ -13,44 +13,49 @@ CREATE TABLE sports
CREATE TABLE users
( Name varchar(5) NOT NULL,
Phone varchar(11) UNIQUE NOT NULL,
Code int AUTO_INCREMENT primary key
User_Code int AUTO_INCREMENT primary key,
password varchar(255) NOT NULL
);
ALTER TABLE users AUTO_INCREMENT=20230001;
CREATE TABLE arena
( Field_Name varchar(20),
( Arena_Name varchar(10),
Sports_Type varchar(10),
Stadium varchar(30) NOT NULL,
Mgr_Code int NOT NULL,
Cost int NOT NULL,
primary key(Field_Name, Sports_Type),
primary key(Arena_Name),
foreign key(Sports_Type) references sports(Name),
foreign key(Mgr_code) references users(Code)
foreign key(Mgr_code) references users(User_Code)
);
CREATE TABLE stadium
( Name varchar(20) NOT NULL,
Arena_Name varchar(10),
primary key(Arena_Name),
foreign key(Arena_Name) references arena(Arena_Name)
);
CREATE TABLE times
( StartTime time NOT NULL,
EndTime time NOT NULL,
Code char PRIMARY KEY
Time_Code char PRIMARY KEY
);
CREATE TABLE games
( Ground_Name varchar(20) NOT NULL,
( Arena_Name varchar(10) NOT NULL,
Time_Code char NOT NULL,
Code int auto_increment primary key,
Game_Code int auto_increment primary key,
Date date NOT NULL,
foreign key(Ground_Name) references arena(Field_Name),
foreign key(Time_Code) references times(Code)
valid BOOLEAN NOT NULL,
foreign key(Arena_Name) references arena(Arena_Name),
foreign key(Time_Code) references times(Time_Code)
);
CREATE TABLE play_in
( User_Code int NOT NULL,
Game_Code int NOT NULL,
foreign key(User_Code) references users(Code),
foreign key(Game_Code) references games(Code)
primary key(User_Code, Game_Code),
foreign key(User_Code) references users(User_Code),
foreign key(Game_Code) references games(Game_Code)
);
\ No newline at end of file
Alter table users add password varchar(20) NOT NULL;
ALTER TABLE games ADD COLUMN valid BOOLEAN NOT NULL;
-- 비밀번호 컬럼의 길이를 늘리기
ALTER TABLE users MODIFY COLUMN password VARCHAR(255);
-- 기존 비밀번호를 SHA-256으로 암호화하여 업데이트
UPDATE users SET password = SHA2(password, 256);
This diff is collapsed.
INSERT INTO USERS VALUES ('박선하', '01046140274', null);
INSERT INTO USERS VALUES ('김성규', '01049807397', null);
INSERT INTO USERS VALUES ('장동우', '01085772577', null);
INSERT INTO USERS VALUES ('남우현', '01060241167', null);
INSERT INTO USERS VALUES ('이성열', '01075268898', null);
INSERT INTO USERS VALUES ('김명수', '01086232093', null);
INSERT INTO USERS VALUES ('이성종', '01035838609', null);
INSERT INTO USERS VALUES ('배주현', '01029648118', null);
INSERT INTO USERS VALUES ('강슬기', '01078234574', null);
INSERT INTO USERS VALUES ('손승완', '01056319172', null);
INSERT INTO USERS VALUES ('박수영', '01074030342', null);
INSERT INTO USERS VALUES ('김예림', '01031454590', null);
INSERT INTO USERS VALUES ('손현우', '01090389042', null);
INSERT INTO USERS VALUES ('이민혁', '01065927996', null);
INSERT INTO USERS VALUES ('유기현', '01070397722', null);
INSERT INTO USERS VALUES ('채형원', '01069238920', null);
INSERT INTO USERS VALUES ('이주헌', '01084026130', null);
INSERT INTO USERS VALUES ('임창균', '01024344498', null);
INSERT INTO USERS VALUES ('유지민', '01026688775', null);
INSERT INTO USERS VALUES ('김민정', '01020037179', null);
INSERT INTO USERS VALUES ('박진', '01078521818', null);
INSERT INTO USERS VALUES ('오해원', '01076737218', null);
INSERT INTO USERS VALUES ('설윤아', '01082298005', null);
INSERT INTO USERS VALUES ('배진솔', '01032448912', null);
INSERT INTO USERS VALUES ('김지우', '01047465724', null);
INSERT INTO USERS VALUES ('장규진', '01080943436', null);
INSERT INTO USERS VALUES ('박성진', '01076145948', null);
INSERT INTO USERS VALUES ('강영현', '01087386690', null);
INSERT INTO USERS VALUES ('김원필', '01056695117', null);
INSERT INTO USERS VALUES ('윤도운', '01073012722', null);
INSERT INTO USERS VALUES ('박건욱', '01059521255', null);
insert into USERS values ('이찬영', '01099309623', null);
insert into USERS values ('김희주', '01059521256', null);
insert into USERS values ('이윤희', '01082835391', null);
insert into USERS values ('심서연', '01035336446', null);
insert into USERS values ('이영주', '01057810158', null);
insert into USERS values ('천가람', '01043076559', null);
insert into USERS values ('박은선', '01023121670', null);
insert into USERS values ('최유리', '01044042252', null);
insert into USERS values ('장슬기', '01071431493', null);
insert into USERS values ('박원빈', '01032769788', null);
insert into USERS values ('송은석', '01034793153', null);
insert into USERS values ('부승관', '01027750666', null);
insert into USERS values ('손흥민', '01099316455', null);
insert into USERS values ('이충희', '01058764068', null);
insert into USERS values ('성찬영', '01030656035', null);
insert into USERS values ('김현준', '01065244452', null);
insert into USERS values ('오동근', '01041678116', null);
insert into USERS values ('김주성', '01079894955', null);
insert into USERS values ('전혁진', '01061786909', null);
insert into USERS values ('안세영', '01046022614', null);
insert into USERS values ('정나은', '01086583730', null);
insert into USERS values ('김혜정', '01074340413', null);
insert into USERS values ('이소희', '01037060758', null);
insert into USERS values ('김소영', '01075837274', null);
insert into USERS values ('조규성', '01056638419', null);
insert into USERS values ('오현규', '01049509671', null);
insert into USERS values ('이강인', '01035819325', null);
insert into USERS values ('정우영', '01050098181', null);
insert into USERS values ('황희찬', '01025655620', null);
insert into USERS values ('김혜리', '01023206016', null);
INSERT INTO users VALUES ('신은별', '01091184668', null);
INSERT INTO users VALUES ('한준호', '01075243596', null);
INSERT INTO users VALUES ('김성민', '01082145016', null);
INSERT INTO users VALUES ('이현우', '01026521115', null);
INSERT INTO users VALUES ('이민준', '01033053755', null);
INSERT INTO users VALUES ('박준영', '01037737901', null);
INSERT INTO users VALUES ('한세진', '01029642785', null);
INSERT INTO users VALUES ('김지훈', '01069612333', null);
INSERT INTO users VALUES ('박준서', '01089169395', null);
INSERT INTO users VALUES ('최현준', '01054928898', null);
INSERT INTO users VALUES ('주영훈', '01096921811', null);
INSERT INTO users VALUES ('강종현', '01029436387', null);
INSERT INTO users VALUES ('김준혁', '01054245354', null);
INSERT INTO users VALUES ('한영재' ,'01055685880', null);
INSERT INTO users VALUES ('정승호', '01040092422', null);
INSERT INTO users VALUES ('임동현', '01032006132', null);
INSERT INTO users VALUES ('황민호', '01077363996', null);
INSERT INTO users VALUES ('홍세영', '01032503703', null);
INSERT INTO users VALUES ('윤현석', '01086309366', null);
INSERT INTO users VALUES ('백태영', '01035902936', null);
INSERT INTO users VALUES ('권현수', '01031603760', null);
INSERT INTO users VALUES ('오상우', '01060649780', null);
INSERT INTO users VALUES ('장현호', '01052963695', null);
INSERT INTO users VALUES ('송형준', '01087441034', null);
INSERT INTO users VALUES ('김지성', '01097288200', null);
INSERT INTO users VALUES ('임한오', '01094989691', null);
INSERT INTO users VALUES ('김민혁', '01023260360', null);
INSERT INTO users VALUES ('이민지', '01059902707', null);
INSERT INTO users VALUES ('윤다영', '01033161637', null);
INSERT INTO users VALUES ('박소연', '01038982701', null);
INSERT INTO USERS VALUES ('박선하', '01046140274', null, '1111');
INSERT INTO USERS VALUES ('김성규', '01049807397', null, '1111');
INSERT INTO USERS VALUES ('장동우', '01085772577', null, '1111');
INSERT INTO USERS VALUES ('남우현', '01060241167', null, '1111');
INSERT INTO USERS VALUES ('이성열', '01075268898', null, '1111');
INSERT INTO USERS VALUES ('김명수', '01086232093', null, '1111');
INSERT INTO USERS VALUES ('이성종', '01035838609', null, '1111');
INSERT INTO USERS VALUES ('배주현', '01029648118', null, '1111');
INSERT INTO USERS VALUES ('강슬기', '01078234574', null, '1111');
INSERT INTO USERS VALUES ('손승완', '01056319172', null, '1111');
INSERT INTO USERS VALUES ('박수영', '01074030342', null, '1111');
INSERT INTO USERS VALUES ('김예림', '01031454590', null, '1111');
INSERT INTO USERS VALUES ('손현우', '01090389042', null, '1111');
INSERT INTO USERS VALUES ('이민혁', '01065927996', null, '1111');
INSERT INTO USERS VALUES ('유기현', '01070397722', null, '1111');
INSERT INTO USERS VALUES ('채형원', '01069238920', null, '1111');
INSERT INTO USERS VALUES ('이주헌', '01084026130', null, '1111');
INSERT INTO USERS VALUES ('임창균', '01024344498', null, '1111');
INSERT INTO USERS VALUES ('유지민', '01026688775', null, '1111');
INSERT INTO USERS VALUES ('김민정', '01020037179', null, '1111');
INSERT INTO USERS VALUES ('박진', '01078521818', null, '1111');
INSERT INTO USERS VALUES ('오해원', '01076737218', null, '1111');
INSERT INTO USERS VALUES ('설윤아', '01082298005', null, '1111');
INSERT INTO USERS VALUES ('배진솔', '01032448912', null, '1111');
INSERT INTO USERS VALUES ('김지우', '01047465724', null, '1111');
INSERT INTO USERS VALUES ('장규진', '01080943436', null, '1111');
INSERT INTO USERS VALUES ('박성진', '01076145948', null, '1111');
INSERT INTO USERS VALUES ('강영현', '01087386690', null, '1111');
INSERT INTO USERS VALUES ('김원필', '01056695117', null, '1111');
INSERT INTO USERS VALUES ('윤도운', '01073012722', null, '1111');
INSERT INTO USERS VALUES ('박건욱', '01059521255', null, '1111');
insert into USERS values ('이찬영', '01099309623', null, '1111');
insert into USERS values ('김희주', '01059521256', null, '1111');
insert into USERS values ('이윤희', '01082835391', null, '1111');
insert into USERS values ('심서연', '01035336446', null, '1111');
insert into USERS values ('이영주', '01057810158', null, '1111');
insert into USERS values ('천가람', '01043076559', null, '1111');
insert into USERS values ('박은선', '01023121670', null, '1111');
insert into USERS values ('최유리', '01044042252', null, '1111');
insert into USERS values ('장슬기', '01071431493', null, '1111');
insert into USERS values ('박원빈', '01032769788', null, '1111');
insert into USERS values ('송은석', '01034793153', null, '1111');
insert into USERS values ('부승관', '01027750666', null, '1111');
insert into USERS values ('손흥민', '01099316455', null, '1111');
insert into USERS values ('이충희', '01058764068', null, '1111');
insert into USERS values ('성찬영', '01030656035', null, '1111');
insert into USERS values ('김현준', '01065244452', null, '1111');
insert into USERS values ('오동근', '01041678116', null, '1111');
insert into USERS values ('김주성', '01079894955', null, '1111');
insert into USERS values ('전혁진', '01061786909', null, '1111');
insert into USERS values ('안세영', '01046022614', null, '1111');
insert into USERS values ('정나은', '01086583730', null, '1111');
insert into USERS values ('김혜정', '01074340413', null, '1111');
insert into USERS values ('이소희', '01037060758', null, '1111');
insert into USERS values ('김소영', '01075837274', null, '1111');
insert into USERS values ('조규성', '01056638419', null, '1111');
insert into USERS values ('오현규', '01049509671', null, '1111');
insert into USERS values ('이강인', '01035819325', null, '1111');
insert into USERS values ('정우영', '01050098181', null, '1111');
insert into USERS values ('황희찬', '01025655620', null, '1111');
insert into USERS values ('김혜리', '01023206016', null, '1111');
INSERT INTO users VALUES ('신은별', '01091184668', null, '1111');
INSERT INTO users VALUES ('한준호', '01075243596', null, '1111');
INSERT INTO users VALUES ('김성민', '01082145016', null, '1111');
INSERT INTO users VALUES ('이현우', '01026521115', null, '1111');
INSERT INTO users VALUES ('이민준', '01033053755', null, '1111');
INSERT INTO users VALUES ('박준영', '01037737901', null, '1111');
INSERT INTO users VALUES ('한세진', '01029642785', null, '1111');
INSERT INTO users VALUES ('김지훈', '01069612333', null, '1111');
INSERT INTO users VALUES ('박준서', '01089169395', null, '1111');
INSERT INTO users VALUES ('최현준', '01054928898', null, '1111');
INSERT INTO users VALUES ('주영훈', '01096921811', null, '1111');
INSERT INTO users VALUES ('강종현', '01029436387', null, '1111');
INSERT INTO users VALUES ('김준혁', '01054245354', null, '1111');
INSERT INTO users VALUES ('한영재' ,'01055685880', null, '1111');
INSERT INTO users VALUES ('정승호', '01040092422', null, '1111');
INSERT INTO users VALUES ('임동현', '01032006132', null, '1111');
INSERT INTO users VALUES ('황민호', '01077363996', null, '1111');
INSERT INTO users VALUES ('홍세영', '01032503703', null, '1111');
INSERT INTO users VALUES ('윤현석', '01086309366', null, '1111');
INSERT INTO users VALUES ('백태영', '01035902936', null, '1111');
INSERT INTO users VALUES ('권현수', '01031603760', null, '1111');
INSERT INTO users VALUES ('오상우', '01060649780', null, '1111');
INSERT INTO users VALUES ('장현호', '01052963695', null, '1111');
INSERT INTO users VALUES ('송형준', '01087441034', null, '1111');
INSERT INTO users VALUES ('김지성', '01097288200', null, '1111');
INSERT INTO users VALUES ('임한오', '01094989691', null, '1111');
INSERT INTO users VALUES ('김민혁', '01023260360', null, '1111');
INSERT INTO users VALUES ('이민지', '01059902707', null, '1111');
INSERT INTO users VALUES ('윤다영', '01033161637', null, '1111');
INSERT INTO users VALUES ('박소연', '01038982701', null, '1111');
update users set password = '1111';
UPDATE users SET password = SHA2(password, 256);
\ No newline at end of file
This diff is collapsed.
......@@ -142,7 +142,7 @@ th, td {
}
.cancel{
background-color: rgb(211, 211, 211);
background-color: rgb(255, 94, 94);
border: none;
padding: 10px 10px;
text-align: center;
......@@ -150,10 +150,13 @@ th, td {
font-size: 13px;
border-radius: 5px;
box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
font-weight: bold;
color: white;
}
.cancel:hover{
background-color: rgb(165, 165, 165);
background-color: rgb(255, 168, 168);
color: black;
}
h2{
......
......@@ -5,7 +5,7 @@
<head>
<meta charset="UTF-8">
<title>BBFF</title>
<title>BBFP</title>
<link rel="stylesheet" href="../static/BBFP_Home.css" />
</head>
......
......@@ -81,7 +81,7 @@
<% }); %>
<% } else { %>
<tr>
<td colspan="6">참가한 게임이 없습니다.</td>
<td colspan="7">참가한 게임이 없습니다.</td>
</tr>
<% } %>
</table>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment