2021-08-29 14:59:11 -04:00
|
|
|
CREATE TABLE auth_val (
|
|
|
|
id SERIAL PRIMARY KEY,
|
|
|
|
email VARCHAR
|
|
|
|
);
|
|
|
|
|
2021-09-06 19:19:39 -04:00
|
|
|
INSERT INTO auth_val(email) VALUES('blazercmstest@gmail.com');
|
2021-08-29 14:59:11 -04:00
|
|
|
|
2021-08-18 18:41:20 -04:00
|
|
|
CREATE TABLE events (
|
|
|
|
id SERIAL PRIMARY KEY,
|
2021-08-29 14:59:11 -04:00
|
|
|
lang VARCHAR,
|
2021-08-18 18:41:20 -04:00
|
|
|
title VARCHAR NOT NULL,
|
|
|
|
text VARCHAR,
|
|
|
|
location VARCHAR NOT NULL,
|
2021-09-08 23:50:20 -04:00
|
|
|
event_date DATE,
|
2021-09-10 18:17:44 -04:00
|
|
|
name VARCHAR NOT NULL,
|
2021-09-08 23:50:20 -04:00
|
|
|
emails VARCHAR NOT NULL
|
2021-08-18 18:41:20 -04:00
|
|
|
);
|
2021-09-08 21:41:34 -04:00
|
|
|
|
|
|
|
|
|
|
|
CREATE TABLE teachers (
|
|
|
|
id SERIAL PRIMARY KEY,
|
|
|
|
lang VARCHAR,
|
|
|
|
name VARCHAR NOT NULL,
|
2021-09-11 17:48:17 -04:00
|
|
|
emails VARCHAR NOT NULL
|
|
|
|
);
|
|
|
|
|
|
|
|
CREATE TABLE announcements (
|
|
|
|
id SERIAL PRIMARY KEY,
|
|
|
|
lang VARCHAR,
|
|
|
|
message VARCHAR NOT NULL,
|
|
|
|
teacher VARCHAR NOT NULL,
|
|
|
|
date DATE,
|
|
|
|
time TIME
|
2021-09-08 21:41:34 -04:00
|
|
|
);
|
|
|
|
|
2021-09-11 17:48:17 -04:00
|
|
|
CREATE TABLE clubs (
|
|
|
|
id SERIAL PRIMARY KEY,
|
|
|
|
lang VARCHAR,
|
|
|
|
name VARCHAR NOT NULL,
|
|
|
|
meeting VARCHAR NOT NULL,
|
|
|
|
link VARCHAR NOT NULL,
|
|
|
|
sponsor VARCHAR NOT NULL
|
|
|
|
);
|
|
|
|
|
|
|
|
CREATE TABLE lunch_events (
|
|
|
|
id SERIAL PRIMARY KEY,
|
|
|
|
lang VARCHAR,
|
|
|
|
title VARCHAR NOT NULL,
|
|
|
|
text VARCHAR NOT NULL,
|
|
|
|
location VARCHAR NOT NULL,
|
|
|
|
time TIME
|
|
|
|
);
|
|
|
|
|
|
|
|
CREATE TABLE ssl_opps (
|
|
|
|
id SERIAL PRIMARY KEY,
|
|
|
|
lang VARCHAR,
|
|
|
|
title VARCHAR NOT NULL,
|
|
|
|
text VARCHAR NOT NULL,
|
|
|
|
location VARCHAR NOT NULL,
|
|
|
|
teacher VARCHAR NOT NULL,
|
|
|
|
time TIME
|
|
|
|
);
|
|
|
|
|
|
|
|
CREATE TABLE polls (
|
|
|
|
id SERIAL PRIMARY KEY,
|
|
|
|
lang VARCHAR,
|
|
|
|
url VARCHAR NOT NULL
|
|
|
|
);
|
2021-09-08 21:41:34 -04:00
|
|
|
|
|
|
|
CREATE TABLE new (
|
|
|
|
id SERIAL PRIMARY KEY,
|
|
|
|
lang VARCHAR,
|
|
|
|
image VARCHAR,
|
|
|
|
name VARCHAR NOT NULL,
|
|
|
|
new_date DATE
|
|
|
|
);
|
2021-09-11 17:48:17 -04:00
|
|
|
|
|
|
|
CREATE TABLE important (
|
|
|
|
id SERIAL PRIMARY KEY,
|
|
|
|
lang VARCHAR,
|
|
|
|
image VARCHAR,
|
|
|
|
text VARCHAR NOT NULL
|
|
|
|
)
|