forked from dachan/dach
1
0
Fork 0

removed unnecessary comma

This commit is contained in:
leca 2024-01-14 18:48:04 +03:00
parent ce72dd40a8
commit 95efd1c332
1 changed files with 4 additions and 4 deletions

View File

@ -16,7 +16,7 @@ CREATE TABLE threads (
); );
CREATE TABLE media ( CREATE TABLE media (
media_id VARCHAR(22) PRIMARY KEY -- format: ${thread_id}-${media_number}, len(thread_id) = 20, + "-" + len(media_number) = 1 = 22 media_id VARCHAR(32) PRIMARY KEY -- format: ${thread_id}-${media_number}.${ext}
); );
CREATE TABLE posts ( CREATE TABLE posts (
@ -35,11 +35,11 @@ CREATE TABLE posts (
CREATE TABLE admins ( CREATE TABLE admins (
login VARCHAR(16) PRIMARY KEY, login VARCHAR(16) PRIMARY KEY,
password_hash CHAR(60) NOT NULL, password_hash CHAR(60) NOT NULL,
privelege_name VARCHAR(16) NOT NULL privilege_name VARCHAR(16) NOT NULL
); );
CREATE TABLE priveleges ( CREATE TABLE privileges (
privelege_name VARCHAR(16) PRIMARY KEY, privilege_name VARCHAR(16) PRIMARY KEY,
access_level INT2 NOT NULL access_level INT2 NOT NULL
); );