Update config files

This commit is contained in:
raul 2024-12-06 13:52:41 +01:00
parent 7827761214
commit 4d5c5d9c93
Signed by: raul
GPG Key ID: C1AA797073F17129
2 changed files with 15 additions and 9 deletions

View File

@ -1,12 +1,14 @@
-- create a table
CREATE TABLE test(
id INT PRIMARY KEY GENERATED ALWAYS AS IDENTITY,
name TEXT NOT NULL,
archived BOOLEAN NOT NULL DEFAULT FALSE
CREATE TABLE ALUMNOS (
id_alumno INT PRIMARY KEY GENERATED ALWAYS AS IDENTITY,
nombre TEXT NOT NULL,
apellido1 TEXT,
apellido2 TEXT,
email TEXT NOT NULL
);
-- add test data
INSERT INTO test (name, archived)
VALUES ('test row 1', true),
('test row 2', false);
INSERT INTO ALUMNOS (nombre, apellido1, apellido2, email)
VALUES ('Raúl', 'Bulgariu', 'Suciu', 'raul@bulgariu.xyz'),
('Pepito', 'Prueba', 'de Ejemplo', 'pepito@gmail.com');

View File

@ -1,3 +1,7 @@
[Server]
# Port to use for web interface
#Port = "8080"
Port = "8080"
DB_Host = "127.0.0.1"
DB_Port = "5432"
DB_User = "drahootuser"
DB_Pass = "drahootpass"
DB_Name = "drahoot"