Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Yunpeng Niu authored May 25, 2017
1 parent 4db834d commit 2d293e1
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,15 @@ PHP was adapted as the server-side language, simple HTML / CSS / JavaScript was
- Overview<br>
We need two tables in a single database. Below, assume that we have created the database called 'cs1101s'.<br>
Therefore, you need to change the connection variables in config.php
- Create _Users_ Table<br>
- Create _users_ Table<br>
To create the table of users, please type in the following SQL command:
```
CREATE TABLE Users (
Id int AUTO_INCREMENT,
CreateTime TIMESTAMP,
UserType int NOT NULL,
Username varchar(50) NOT NULL,
Password varchar(80) NOT NULL,
CREATE TABLE users (
id int AUTO_INCREMENT,
created_at TIMESTAMP,
user_type int NOT NULL,
username varchar(50) NOT NULL,
password varchar(80) NOT NULL,
PRIMARY KEY(Id)
);
```
Expand All @@ -42,16 +42,16 @@ To create a student user (normal user), please type in the following SQL command
INSERT INTO Users (UserType, Username, Password) VALUES (1, "Lily", "987654");
```

- Create _Files_ Table<br>
- Create _files_ Table<br>
To create the table of files, please type in the following SQL command:
```
CREATE TABLE Files (
Id int AUTO_INCREMENT,
UploadTime TIMESTAMP,
Filename varchar(100) NOT NULL,
Author varchar(100),
Description varchar(500),
FilePath varchar(200) NOT NULL,
CREATE TABLE files (
id int AUTO_INCREMENT,
uploaded_at TIMESTAMP,
file_name varchar(100) NOT NULL,
author varchar(100),
description varchar(500),
file_path varchar(200) NOT NULL,
PRIMARY KEY(Id)
);
```
Expand Down

0 comments on commit 2d293e1

Please sign in to comment.