From 6f3d5702858f5d11abdd207ac60ad123ed266a2d Mon Sep 17 00:00:00 2001 From: coolneng Date: Sun, 21 Jun 2020 20:38:32 +0200 Subject: [PATCH] Add default calendar values --- database/db.sql | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/database/db.sql b/database/db.sql index 4be9b36..e083278 100644 --- a/database/db.sql +++ b/database/db.sql @@ -65,9 +65,9 @@ CREATE TABLE IF NOT EXISTS calendario ( hora_inicio_tarde TIME, hora_fin_tarde TIME, horario VARCHAR(15) NOT NULL, - sabado_habil BOOLEAN, - domingo_habil BOOLEAN, - duracion_cita_por_defecto INT, + sabado_habil BOOLEAN DEFAULT FALSE, + domingo_habil BOOLEAN DEFAULT FALSE, + duracion_cita_por_defecto INT DEFAULT 60, medico INT, PRIMARY KEY (id, medico), FOREIGN KEY (medico)