Skip to content
Snippets Groups Projects
Commit 23067c70 authored by SajtosKifli's avatar SajtosKifli
Browse files

add epic tolsztoj moment

parent 26459d02
No related branches found
No related tags found
No related merge requests found
-- DROP TABLE documents;
-- DROP TABLE subjects;
-- DROP TABLE users;
-- CREATE TABLE users (
-- username VARCHAR(255) PRIMARY KEY,
-- fullName VARCHAR(255),
-- password VARCHAR(255)
-- );
--
-- CREATE TABLE subjects (
-- subjectId VARCHAR(255) PRIMARY KEY,
-- name VARCHAR(255)
-- );
--
-- CREATE TABLE documents (
-- id BIGINT AUTO_INCREMENT PRIMARY KEY,
-- userId VARCHAR(255) NOT NULL,
-- subjectId VARCHAR(255) NOT NULL,
-- title VARCHAR(255) NOT NULL,
-- description VARCHAR(255),
-- uploaded TIMESTAMP,
-- filepath VARCHAR(255) NOT NULL,
-- FOREIGN KEY (userId) REFERENCES users(username),
-- FOREIGN KEY (subjectId) REFERENCES subjects(subjectId)
-- );
-- INSERT INTO USERS(username, password, fullName) VALUES ('testUser', 'testPassword', 'Test User');
-- INSERT INTO SUBJECTS(subjectId, name) VALUES ('testId', 'Test Subject');
-- INSERT INTO DOCUMENTS(id, userId, subjectId, title, description, uploaded, filepath) VALUES (1, 'testUser', 'testId', 'Test Title', 'Test Description', CURRENT_TIMESTAMP, '/path/to/file');
-- INSERT INTO users (username, fullName, password) VALUES ('kazsa', 'Kada Zsolt', 'aaaa');
--
--
-- INSERT INTO subjects (subjectId) VALUES ('Szofttech');
--
-- -- Assuming 'uploaded' timestamp is correctly formatted for your DBMS, e.g., '2024-01-01 10:00:00'
-- INSERT INTO documents (userId, subjectId, title, description, uploaded, filepath) VALUES ('kazsa', 'Szofttech', '1. előadás', 'Description of the document', '2024-01-01 10:00:00', 'documents/1.eloadas_szoftvertechnologia_2024_v1.0.pdf');
\ No newline at end of file
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment