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

View File

@ -1,3 +1,7 @@
[Server] [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"