blazerapp/cms/migrations/setup/up.sql

108 lines
2.0 KiB
MySQL
Raw Normal View History

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-12 15:08:49 -04:00
email VARCHAR NOT NULL,
phone VARCHAR NOT NULL,
2021-09-12 21:28:01 -04:00
position VARCHAR NOT NULL
2021-09-11 17:48:17 -04:00
);
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
);
2021-09-12 15:08:49 -04:00
CREATE TABLE ssl_ops (
2021-09-11 17:48:17 -04:00
id SERIAL PRIMARY KEY,
lang VARCHAR,
title VARCHAR NOT NULL,
text VARCHAR NOT NULL,
location VARCHAR NOT NULL,
teacher VARCHAR NOT NULL,
2021-09-12 15:08:49 -04:00
date DATE
2021-09-11 17:48:17 -04:00
);
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,
2021-09-12 21:28:01 -04:00
text VARCHAR NOT NULL,
2021-09-08 21:41:34 -04:00
new_date DATE
);
2021-09-11 17:48:17 -04:00
2021-09-12 15:08:49 -04:00
CREATE TABLE challenge (
id SERIAL PRIMARY KEY,
lang VARCHAR,
title VARCHAR NOT NULL,
text VARCHAR NOT NULL,
link VARCHAR NOT NULL
);
CREATE TABLE student (
id SERIAL PRIMARY KEY,
lang VARCHAR,
name VARCHAR NOT NULL,
image VARCHAR,
grade VARCHAR NOT NULL,
messages VARCHAR NOT NULL,
hobbies VARCHAR NOT NULL,
achievements VARCHAR NOT NULL
);
2021-09-11 17:48:17 -04:00
CREATE TABLE important (
id SERIAL PRIMARY KEY,
lang VARCHAR,
image VARCHAR,
text VARCHAR NOT NULL
2021-09-12 15:08:49 -04:00
);