mirror of
https://github.com/Derpy-Leggies/OnlyLegs.git
synced 2025-06-29 11:36:16 +00:00
Fixed multiple requests for images
Started adding SQL table layouts Making package loading prettier
This commit is contained in:
parent
5951baadaf
commit
a7e79ab5a5
10 changed files with 60 additions and 75 deletions
7
packages/tables/admins.sql
Normal file
7
packages/tables/admins.sql
Normal file
|
@ -0,0 +1,7 @@
|
|||
CREATE IF NOT EXISTS TABLE abilities (
|
||||
id INT(69) PRIMARY KEY AUTO_INCREMENT,
|
||||
user INT(69) NOT NULL,
|
||||
admin BOOLEAN NOT NULL DEFAULT FALSE,
|
||||
create_posts BOOLEAN NOT NULL DEFAULT TRUE,
|
||||
updated_at TIMESTAMP NOT NULL DEFAULT NOW() ON UPDATE NOW()
|
||||
);
|
8
packages/tables/users.sql
Normal file
8
packages/tables/users.sql
Normal file
|
@ -0,0 +1,8 @@
|
|||
CREATE IF NOT EXISTS TABLE users (
|
||||
id INT(69) PRIMARY KEY AUTO_INCREMENT,
|
||||
username VARCHAR(255) NOT NULL,
|
||||
email VARCHAR(255) NOT NULL,
|
||||
password VARCHAR(255) NOT NULL,
|
||||
created_at TIMESTAMP NOT NULL DEFAULT NOW(),
|
||||
updated_at TIMESTAMP NOT NULL DEFAULT NOW() ON UPDATE NOW()
|
||||
);
|
Loading…
Add table
Add a link
Reference in a new issue