You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

8 lines
1.0 KiB

PRAGMA foreign_keys=OFF;
BEGIN TRANSACTION;
CREATE TABLE IF NOT EXISTS "gestion_libro" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "titulo" varchar(200) NOT NULL, "descripcion" text NULL, "archivo" varchar(100) NOT NULL, "autor_id" bigint NOT NULL REFERENCES "gestion_autor" ("id") DEFERRABLE INITIALLY DEFERRED, "fecha_publicacion" bigint unsigned NOT NULL CHECK ("fecha_publicacion" >= 0), "portada" varchar(100) NULL);
INSERT INTO gestion_libro VALUES(1,'Sunset Park','buena','libros/Sunset_Park_-_Paul_Auster_12.epub',1,2018,'portadas/sunsetpark.jpeg');
INSERT INTO gestion_libro VALUES(2,'Invisible','ddd','libros/Invisible_-_Paul_Auster_5.epub',1,2024,'portadas/invisible.jpeg');
INSERT INTO gestion_libro VALUES(3,'El Palacio de la Luna','Lentejas caseras','libros/Palacio_de_la_Luna_El_-_Auster_Paul_99.epub',1,2018,'portadas/palacio.jpeg');
INSERT INTO gestion_libro VALUES(4,'21 Lecciones para el siglo XXI','ddd','libros/21_lecciones_para_el_siglo_XXI_-_Yuval_Noah_Harari_234.epub',3,2024,'portadas/lecciones.jpeg');
COMMIT;