mirror of
https://github.com/Lynnesbian/FediBooks/
synced 2024-11-25 16:48:58 +00:00
merge contact settings and user tables
This commit is contained in:
parent
cae7cfe8c2
commit
86f68cfa37
1 changed files with 2 additions and 6 deletions
|
@ -2,15 +2,11 @@ USE `fedibooks`;
|
||||||
CREATE TABLE IF NOT EXISTS `users` (
|
CREATE TABLE IF NOT EXISTS `users` (
|
||||||
`id` INT AUTO_INCREMENT PRIMARY KEY,
|
`id` INT AUTO_INCREMENT PRIMARY KEY,
|
||||||
`email` VARCHAR(128) UNIQUE NOT NULL,
|
`email` VARCHAR(128) UNIQUE NOT NULL,
|
||||||
`password` BINARY(60) NOT NULL
|
`password` BINARY(60) NOT NULL,
|
||||||
) ENGINE=INNODB;
|
|
||||||
CREATE TABLE IF NOT EXISTS `contact_settings` (
|
|
||||||
`user_id` INT NOT NULL,
|
|
||||||
`fetch` ENUM('always', 'once', 'never') DEFAULT 'once',
|
`fetch` ENUM('always', 'once', 'never') DEFAULT 'once',
|
||||||
`submit` ENUM('always', 'once', 'never') DEFAULT 'once',
|
`submit` ENUM('always', 'once', 'never') DEFAULT 'once',
|
||||||
`generation` ENUM('always', 'once', 'never') DEFAULT 'once',
|
`generation` ENUM('always', 'once', 'never') DEFAULT 'once',
|
||||||
`reply` ENUM('always', 'once', 'never') DEFAULT 'once',
|
`reply` ENUM('always', 'once', 'never') DEFAULT 'once'
|
||||||
FOREIGN KEY (`user_id`) REFERENCES users(id) ON DELETE CASCADE
|
|
||||||
) ENGINE=INNODB;
|
) ENGINE=INNODB;
|
||||||
CREATE TABLE IF NOT EXISTS `credentials` (
|
CREATE TABLE IF NOT EXISTS `credentials` (
|
||||||
`id` INT AUTO_INCREMENT PRIMARY KEY,
|
`id` INT AUTO_INCREMENT PRIMARY KEY,
|
||||||
|
|
Loading…
Reference in a new issue