add documentation header to data.sql

This commit is contained in:
sehnryr
2022-10-15 18:59:27 +02:00
committed by Youn Mélois
parent 770189b790
commit 3109df9a3f

View File

@@ -1,8 +1,18 @@
/*******************************************************************************
Creation Date: 2022-10-13
Author: Maxence Laurent <nano0@duck.com>
Author: Youn Mélois <youn@melois.dev>
Description: Creates the database tables and relations.
Usage: psql -U postgres -d interpromos -a -f data.sql
https://stackoverflow.com/a/23992045/12619942
*******************************************************************************/
DELETE FROM sports;
DELETE FROM users;
-- Populate sports table
ALTER SEQUENCE sports_id_seq RESTART;
INSERT INTO sports ("name") values
INSERT INTO sports ("name") VALUES
('Basket'),
('Hand'),
('Bad'),