1
0
mirror of https://github.com/Adam-Ant/QuotesDB synced 2024-11-05 10:56:22 +00:00
QuotesDB/default.sql

17 lines
364 B
MySQL
Raw Normal View History

2017-10-03 01:18:13 +00:00
CREATE TABLE Users (
uid int NOT NULL AUTO_INCREMENT PRIMARY KEY,
user varchar(255) NOT NULL,
realname varchar(255) NOT NULL
);
CREATE TABLE Quotes (
id INT NOT NULL AUTO_INCREMENT PRIMARY KEY,
quote VARCHAR(2048) NOT NULL,
date VARCHAR(255) NOT NULL,
user INT NOT NULL,
context VARCHAR(8000),
FOREIGN KEY (user) REFERENCES Users(uid)
);