mirror of
https://github.com/Fluffy-Bean/image-gallery.git
synced 2025-01-15 02:55:18 +00:00
Updated Manual install (markdown)
parent
0ac9381785
commit
68d6454734
|
@ -79,11 +79,11 @@ You will next need to setup the following tables:
|
|||
## Images
|
||||
```
|
||||
CREATE TABLE images (
|
||||
id INT NOT NULL PRIMARY KEY AUTO_INCREMENT,
|
||||
imagename VARCHAR(50) UNIQUE,
|
||||
id INT(11) NOT NULL PRIMARY KEY AUTO_INCREMENT,
|
||||
imagename VARCHAR(255) UNIQUE,
|
||||
alt TEXT,
|
||||
tags TEXT,
|
||||
author VARCHAR(50),
|
||||
author VARCHAR(50) NOT NULL,
|
||||
last_modified TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
|
||||
upload_date TIMESTAMP DEFAULT CURRENT_TIMESTAMP
|
||||
);
|
||||
|
@ -92,11 +92,11 @@ CREATE TABLE images (
|
|||
## Users
|
||||
```
|
||||
CREATE TABLE users (
|
||||
id INT NOT NULL PRIMARY KEY AUTO_INCREMENT,
|
||||
id INT(11) NOT NULL PRIMARY KEY AUTO_INCREMENT,
|
||||
username VARCHAR(50) NOT NULL UNIQUE,
|
||||
password VARCHAR(255) NOT NULL,
|
||||
pfp_path VARCHAR(50),
|
||||
admin bool,
|
||||
admin BOOLEAN DEFAULT FALSE,
|
||||
last_modified TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
|
||||
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
|
||||
);
|
||||
|
@ -105,7 +105,7 @@ CREATE TABLE users (
|
|||
## Tokens
|
||||
```
|
||||
CREATE TABLE tokens (
|
||||
id INT(11) AUTO_INCREMENT PRIMARY KEY,
|
||||
id INT(11) NOT NULL PRIMARY KEY AUTO_INCREMENT,
|
||||
code VARCHAR(16) NOT NULL,
|
||||
used BOOLEAN NOT NULL DEFAULT FALSE,
|
||||
timestamp TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP
|
||||
|
@ -115,9 +115,9 @@ CREATE TABLE tokens (
|
|||
## Logs
|
||||
```
|
||||
CREATE TABLE logs (
|
||||
id INT NOT NULL PRIMARY KEY AUTO_INCREMENT,
|
||||
id INT(11) NOT NULL PRIMARY KEY AUTO_INCREMENT,
|
||||
ipaddress VARCHAR(16) NOT NULL,
|
||||
action TEXT,
|
||||
action TEXT NOT NULL,
|
||||
time TIMESTAMP DEFAULT CURRENT_TIMESTAMP
|
||||
);
|
||||
```
|
||||
|
@ -125,7 +125,7 @@ CREATE TABLE logs (
|
|||
## Bans
|
||||
```
|
||||
CREATE TABLE bans (
|
||||
id INT NOT NULL PRIMARY KEY AUTO_INCREMENT,
|
||||
id INT(11) NOT NULL PRIMARY KEY AUTO_INCREMENT,
|
||||
ipaddress VARCHAR(16) NOT NULL,
|
||||
reason TEXT NOT NULL,
|
||||
time TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
|
||||
|
@ -137,10 +137,10 @@ CREATE TABLE bans (
|
|||
## Groups
|
||||
```
|
||||
CREATE TABLE groups (
|
||||
id INT NOT NULL PRIMARY KEY AUTO_INCREMENT,
|
||||
id INT(11) NOT NULL PRIMARY KEY AUTO_INCREMENT,
|
||||
group_name VARCHAR(255) NOT NULL,
|
||||
image_list TEXT NOT NULL,
|
||||
author VARCHAR(50),
|
||||
author VARCHAR(50) NOT NULL,
|
||||
last_modified TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
|
||||
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue