-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ad1a7b1
commit 2c9a426
Showing
6 changed files
with
49 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,32 @@ | ||
-- phpMyAdmin SQL Dump | ||
-- version 5.1.1 | ||
-- https://www.phpmyadmin.net/ | ||
-- | ||
-- Host: 127.0.0.1 | ||
-- Generation Time: Apr 13, 2023 at 05:21 PM | ||
-- Server version: 10.4.19-MariaDB | ||
-- PHP Version: 7.4.20 | ||
|
||
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; | ||
START TRANSACTION; | ||
SET time_zone = "+00:00"; | ||
|
||
|
||
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; | ||
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; | ||
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; | ||
/*!40101 SET NAMES utf8mb4 */; | ||
|
||
-- | ||
-- Database: `db_ideas` | ||
-- | ||
|
||
-- -------------------------------------------------------- | ||
|
||
-- | ||
-- Table structure for table `document` | ||
-- | ||
|
||
CREATE TABLE Role | ||
( | ||
RoleID INT PRIMARY KEY AUTO_INCREMENT, | ||
|
@@ -42,12 +71,12 @@ CREATE TABLE Topic | |
CREATE TABLE Idea | ||
( | ||
IdeaID INT PRIMARY KEY AUTO_INCREMENT, | ||
Title VARCHAR(100) NOT NULL, | ||
Content TEXT NOT NULL, | ||
is_anonymous BOOLEAN NOT NULL default FALSE, | ||
PostDate DATETIME NOT NULL, | ||
StaffID INT NOT NULL, | ||
TopicID INT NOT NULL, | ||
Title VARCHAR(100) NOT NULL, | ||
Content LONGTEXT NOT NULL, | ||
is_anonymous BOOLEAN NOT NULL default FALSE, | ||
PostDate DATETIME NOT NULL, | ||
StaffID INT NOT NULL, | ||
TopicID INT NOT NULL, | ||
FOREIGN KEY (StaffID) REFERENCES Staff (StaffID), | ||
FOREIGN KEY (TopicID) REFERENCES Topic (TopicID) | ||
); | ||
|
@@ -73,11 +102,11 @@ CREATE TABLE Vote | |
CREATE TABLE Comment | ||
( | ||
CommentID INT PRIMARY KEY AUTO_INCREMENT, | ||
CommentContent VARCHAR(500) NOT NULL, | ||
CommentContent VARCHAR(1000) NOT NULL, | ||
StaffID INT NOT NULL, | ||
IdeaID INT NOT NULL, | ||
is_anonymous BOOLEAN NOT NULL default FALSE, | ||
CommentDate DATETIME NOT NULL, | ||
CommentDate DATETIME NOT NULL, | ||
FOREIGN KEY (StaffID) REFERENCES Staff (StaffID), | ||
FOREIGN KEY (IdeaID) REFERENCES Idea (IdeaID) | ||
); | ||
|
@@ -100,7 +129,7 @@ VALUES (1, 'Quality Assurance Manager (QAM)'), | |
INSERT INTO Staff (StaffID, FullName, Email, Password, RoleID, DepartmentID) | ||
VALUES (1, 'QAM', '[email protected]', '$2y$10$aUaqeyUNjiSTgi44hJxRCOoHYscBb669g1MGlP.oFJYBFW2pm0hAG', 1, 1), | ||
(2, 'QAC', '[email protected]', '$2y$10$pjaXpyOBJ9Y964u7E4GWv.wy2IMbLdhd/Wj9vSmw4o/UxI8ya6V2C', 2, 1), | ||
(3, 'Biran Lee', '[email protected]', '$2y$10$FlkAQm89yKb4/sOpNEM8UOkPxu.deAdb4vFRq6OAs74aaG5F7vIOu', 3, | ||
(3, 'Biran Lee', '[email protected]', '$2y$10$FlkAQm89yKb4/sOpNEM8UOkPxu.deAdb4vFRq6OAs74aaG5F7vIOu', 3, | ||
2), | ||
(4, 'Le Trung Kien', '[email protected]', '$2y$10$jukBN3dfGBBjR2RsYz9geuZsbUwPMZnVbb1H7Cj1IoaG0jYMOdciy', 3, | ||
3); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,11 @@ | ||
<!-- ================= Footer ================= --> | ||
<footer class="bg-white d-flex align-items-center fixed-bottom shadow"> | ||
<footer class="bg-white d-flex align-items-center shadow" style="position: fixed; bottom: 0; left: 0; right: 0;"> | ||
<div class="container"> | ||
<div class="row"> | ||
<div class="col-md-12 text-center" style="margin-top: 20px;"> | ||
<!-- terms --> | ||
<div | ||
"> | ||
<p> | ||
Privacy • Terms • Ideas Uni © 2024. Developed by Group LVKP. All rights reserved. | ||
Privacy • Terms • Ideas Uni © 2024. Developed by Group LVKP. All rights reserved. | ||
</p> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</footer> | ||
</footer> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters