Initial app which displays entries from the database

This commit is contained in:
Niklas Meinzer
2025-02-26 08:08:00 +01:00
commit 26b709f3c0
4 changed files with 168 additions and 0 deletions

13
create_db.sql Normal file
View File

@@ -0,0 +1,13 @@
CREATE TABLE meals (
id SERIAL PRIMARY KEY,
title TEXT NOT NULL,
link TEXT NOT NULL,
event_date DATE NOT NULL,
registration_closes TIMESTAMP NOT NULL
);
INSERT INTO meals (title, link, event_date, registration_closes)
VALUES ('Kidneybohnen Burger mit veganem Coleslaw','https://melly.de/plan/2ZSNYWR37VB8','2025-03-05', '2025-03-02T17:30:30'),
('Gemüselasagne mit Salat','hhttps://melly.de/plan/M4XU9XMVM2HP','2025-02-28', '2025-02-23T17:30:30'),
RETURNING *;