Commit 9d81191e authored by Marine Marsal's avatar Marine Marsal
Browse files

Update DATA.sql, suppression public.

parent af83ea8d
/* ---------------- UTILISATEUR TABLE DATASET ---------------- */
INSERT INTO public.utilisateur(
INSERT INTO utilisateur(
login, motdepasse, nom, prenom, adresse, mail)
VALUES ('hlefebvre', '1888ZFDSDSQD5Q', 'Lefebvre', 'Hugo', '78 Avenue des Champs-Elysées - 75000 Paris', 'hugo.lefebvre@gmail.com');
INSERT INTO public.utilisateur(
INSERT INTO utilisateur(
login, motdepasse, nom, prenom, adresse, mail)
VALUES ('dnicolas', '4868775SDFQS', 'Nicolas', 'Dimitri', '18 Rue Victor Hugo - 60000 Beauvais', 'dimitri.nicolas@etu.utc.fr');
INSERT INTO public.utilisateur(
INSERT INTO utilisateur(
login, motdepasse, nom, prenom, adresse, mail)
VALUES ('mmarsal', '687DSQSQD45FDQS', 'Marsal', 'Marine', '2 Avenue de la liberté - 75000 Paris', 'marine.marsal@etu.utc.fr');
INSERT INTO public.utilisateur(
INSERT INTO utilisateur(
login, motdepasse, nom, prenom, adresse, mail)
VALUES ('msolan', 'XDSFQS867SDQ687', 'Solan', 'Matthieu', '5bis rue du Général de Gaulle - 60100 Creil', 'matthieu.solan@etu.utc.fr');
INSERT INTO public.utilisateur(
INSERT INTO utilisateur(
login, motdepasse, nom, prenom, adresse, mail)
VALUES ('blussier', 'FQSD6SQD67QS', 'Lussier', 'Benjamin', '10 Avenue des martyrs de la liberté - 60200 Compiègne', 'benjamin.lussier@utc.fr');
INSERT INTO public.utilisateur(
INSERT INTO utilisateur(
login, motdepasse, nom, prenom, adresse, mail)
VALUES ('avictorino', '6876QSD76QSD687Q', 'Victorino', 'Alessandro', '67 rue roger couttolenc - 60200 Compiègne', 'alessandro.victorino@utc.fr');
INSERT INTO public.utilisateur(
INSERT INTO utilisateur(
login, motdepasse, nom, prenom, adresse, mail)
VALUES ('cdupont', 'DSQF6878DQ7', 'Dupont', 'Christophe', '2 Rue de Paris - 95000 Cergy', 'christophe.dupont@utc.fr');
INSERT INTO public.utilisateur(
INSERT INTO utilisateur(
login, motdepasse, nom, prenom, adresse, mail)
VALUES ('hbernard', 'SDFQS8787QBDQSAX', 'Bernard', 'Henri', '25 Avenue des Champs-Elysées - 75000 Paris', 'henri.bernard@orange.fr');
INSERT INTO public.utilisateur(
INSERT INTO utilisateur(
login, motdepasse, nom, prenom, adresse, mail)
VALUES ('lbernard', '47FEADQ665D788', 'Bernard', 'Louis', '25 Avenue des Champs-Elysées - 75000 Paris', 'louis.bernard@orange.fr');
/* ---------------- ADHERENT TABLE DATASET ---------------- */
INSERT INTO public.adherent(
INSERT INTO adherent(
login, numcarte, datenaissance, numtel, dateadhesion, blacklisted)
VALUES ('hlefebvre', '1255489656', '13/05/2000', '0344586921', CURRENT_TIMESTAMP, FALSE);
INSERT INTO public.adherent(
INSERT INTO adherent(
login, numcarte, datenaissance, numtel, dateadhesion, blacklisted)
VALUES ('dnicolas', '5464544556', '12/04/2001', '0658697423',CURRENT_TIMESTAMP, FALSE);
INSERT INTO public.adherent(
INSERT INTO adherent(
login, numcarte, datenaissance, numtel, dateadhesion, blacklisted)
VALUES ('mmarsal', '2568689864', '23/10/1999', '0345867796',CURRENT_TIMESTAMP, FALSE);
INSERT INTO public.adherent(
INSERT INTO adherent(
login, numcarte, datenaissance, numtel, dateadhesion, blacklisted)
VALUES ('msolan', '34868452136', '29/12/1999', '0678221436',CURRENT_TIMESTAMP, FALSE);
INSERT INTO public.adherent(
INSERT INTO adherent(
login, numcarte, datenaissance, numtel, dateadhesion, blacklisted)
VALUES ('cdupont', '78786578654', '20/05/1985', '0365789611',CURRENT_TIMESTAMP, FALSE);
INSERT INTO public.adherent(
INSERT INTO adherent(
login, numcarte, datenaissance, numtel, dateadhesion, blacklisted)
VALUES ('hbernard', '135678654456', '02/08/2000', '0458961232',CURRENT_TIMESTAMP, TRUE);
INSERT INTO public.adherent(
INSERT INTO adherent(
login, numcarte, datenaissance, numtel, dateadhesion, blacklisted)
VALUES ('lbernard', '12224044456', '06/03/1998', '0656321287',CURRENT_TIMESTAMP, TRUE);
/* ---------------- PERSONNEL TABLE DATASET ---------------- */
INSERT INTO public.personnel(
INSERT INTO personnel(
login)
VALUES ('blussier');
INSERT INTO public.personnel(
INSERT INTO personnel(
login)
VALUES ('avictorino');
INSERT INTO public.personnel(
INSERT INTO personnel(
login)
VALUES ('cdupont');
......@@ -213,210 +213,210 @@ INSERT INTO film(
INSERT INTO livre(codeunique, isbn, resume, langue) VALUES (4562, 'ita52', 'recette de cuisine italienne','italien');
INSERT INTO livre(codeunique, isbn, resume, langue) VALUES (5325, 'ds52g', 'la vie des 3 mousquetaires', 'Français');
INSERT INTO public.livre(
INSERT INTO livre(
codeunique, isbn, resume, langue)
VALUES (4873, 'zetg56', 'Tintin et Milou', 'Français');
INSERT INTO public.livre(
INSERT INTO livre(
codeunique, isbn, resume, langue)
VALUES (4123, 'sd522dd', 'Pirate', 'Japonais');
INSERT INTO public.livre(
INSERT INTO livre(
codeunique, isbn, resume, langue)
VALUES (4942, 'ze23dgs', 'Apprentissage C++', 'Français');
INSERT INTO public.livre(
INSERT INTO livre(
codeunique, isbn, resume, langue)
VALUES (1713, '5q46ds21', 'un village gaulois résiste à la conquête romaine', 'Français');
INSERT INTO public.livre(
INSERT INTO livre(
codeunique, isbn, resume, langue)
VALUES (7623, 'dqf6512dsg', 'la vie d''un jeune garçon flemmard et maladroit mais très malin', 'Français');
INSERT INTO public.livre(
INSERT INTO livre(
codeunique, isbn, resume, langue)
VALUES (9826, 'f64fds2fd', 'débat sur le thême de l''amour durant un banquet', 'Grec');
INSERT INTO public.livre(
INSERT INTO livre(
codeunique, isbn, resume, langue)
VALUES (7453, 'dsgdsg52','des jeunes gens se perdent durant la nuit dans une forêt','Français' );
INSERT INTO public.livre(
INSERT INTO livre(
codeunique, isbn, resume, langue)
VALUES (1752, '6sd23ds1','la vie du petit philippe lorsque Lindberg devient président des états-unis','Anglais' );
/*-------------------------- TABLE EXEMPLAIRE IMPORTS ------------------------*/
INSERT INTO public.exemplaire(
INSERT INTO exemplaire(
ref, etat, disponible, ressource)
VALUES ('5506', 'Bon', TRUE, '12345');
INSERT INTO public.exemplaire(
INSERT INTO exemplaire(
ref, etat, disponible, ressource)
VALUES ('5505', 'Neuf', TRUE, '12345');
INSERT INTO public.exemplaire(
INSERT INTO exemplaire(
ref, etat, disponible, ressource)
VALUES ('5507', 'Bon', TRUE, '4562');
INSERT INTO public.exemplaire(
INSERT INTO exemplaire(
ref, etat, disponible, ressource)
VALUES ('5508', 'Neuf', TRUE, '8921');
INSERT INTO public.exemplaire(
INSERT INTO exemplaire(
ref, etat, disponible, ressource)
VALUES ('5509', 'Bon', TRUE, '7896');
INSERT INTO public.exemplaire(
INSERT INTO exemplaire(
ref, etat, disponible, ressource)
VALUES ('5510', 'Neuf', FALSE, '7896');
INSERT INTO public.exemplaire(
INSERT INTO exemplaire(
ref, etat, disponible, ressource)
VALUES ('5696', 'Abimé', TRUE, '5325');
INSERT INTO public.exemplaire(
INSERT INTO exemplaire(
ref, etat, disponible, ressource)
VALUES ('6000', 'Neuf', FALSE, '4873');
INSERT INTO public.exemplaire(
INSERT INTO exemplaire(
ref, etat, disponible, ressource)
VALUES ('8965', 'Bon', TRUE, '4123');
INSERT INTO public.exemplaire(
INSERT INTO exemplaire(
ref, etat, disponible, ressource)
VALUES ('8966', 'Bon', TRUE, '4123');
INSERT INTO public.exemplaire(
INSERT INTO exemplaire(
ref, etat, disponible, ressource)
VALUES ('8967', 'Neuf', TRUE, '4123');
INSERT INTO public.exemplaire(
INSERT INTO exemplaire(
ref, etat, disponible, ressource)
VALUES ('9000', 'Bon', TRUE, '4942');
INSERT INTO public.exemplaire(
INSERT INTO exemplaire(
ref, etat, disponible, ressource)
VALUES ('623', 'Neuf', FALSE, '1713');
INSERT INTO public.exemplaire(
INSERT INTO exemplaire(
ref, etat, disponible, ressource)
VALUES ('1125', 'Bon', TRUE, '7623');
INSERT INTO public.exemplaire(
INSERT INTO exemplaire(
ref, etat, disponible, ressource)
VALUES ('1156', 'Bon', TRUE, '9826');
INSERT INTO public.exemplaire(
INSERT INTO exemplaire(
ref, etat, disponible, ressource)
VALUES ('8896', 'Neuf', TRUE, '6666');
INSERT INTO public.exemplaire(
INSERT INTO exemplaire(
ref, etat, disponible, ressource)
VALUES ('10056', 'Bon', FALSE, '3496');
INSERT INTO public.exemplaire(
INSERT INTO exemplaire(
ref, etat, disponible, ressource)
VALUES ('10057', 'Bon', TRUE, '3496');
INSERT INTO public.exemplaire(
INSERT INTO exemplaire(
ref, etat, disponible, ressource)
VALUES ('12300', 'Bon', TRUE, '3495');
INSERT INTO public.exemplaire(
INSERT INTO exemplaire(
ref, etat, disponible, ressource)
VALUES ('7896', 'Neuf', TRUE, '888');
INSERT INTO public.exemplaire(
INSERT INTO exemplaire(
ref, etat, disponible, ressource)
VALUES ('5236', 'Abimé', TRUE, '7453');
INSERT INTO public.exemplaire(
INSERT INTO exemplaire(
ref, etat, disponible, ressource)
VALUES ('11456', 'Abimé', TRUE, '5625');
/* --------------- SANCTION DATASET IMPORTS --------------- */
INSERT INTO public.sanction(encours, datesanction, adherent)
INSERT INTO sanction(encours, datesanction, adherent)
VALUES (TRUE, CURRENT_TIMESTAMP, 'dnicolas');
INSERT INTO public.sanction(encours, datesanction, adherent)
INSERT INTO sanction(encours, datesanction, adherent)
VALUES (FALSE, '10-05-2020', 'dnicolas');
INSERT INTO public.sanction(encours, datesanction, adherent)
INSERT INTO sanction(encours, datesanction, adherent)
VALUES (TRUE, CURRENT_TIMESTAMP, 'msolan');
INSERT INTO public.sanction(encours, datesanction, adherent)
INSERT INTO sanction(encours, datesanction, adherent)
VALUES (FALSE, '08/05/2020', 'hbernard');
INSERT INTO public.sanction(encours, datesanction, adherent)
INSERT INTO sanction(encours, datesanction, adherent)
VALUES (FALSE, '10/05/2020', 'lbernard');
INSERT INTO public.sanction(encours, datesanction, adherent)
INSERT INTO sanction(encours, datesanction, adherent)
VALUES (FALSE, '01/06/2020', 'hbernard');
INSERT INTO public.sanction(encours, datesanction, adherent)
INSERT INTO sanction(encours, datesanction, adherent)
VALUES (FALSE, '01/06/2020', 'lbernard');
INSERT INTO public.sanction(encours, datesanction, adherent)
INSERT INTO sanction(encours, datesanction, adherent)
VALUES (TRUE, CURRENT_TIMESTAMP, 'hbernard');
INSERT INTO public.sanction(encours, datesanction, adherent)
INSERT INTO sanction(encours, datesanction, adherent)
VALUES (TRUE, CURRENT_TIMESTAMP, 'lbernard');
/* --------------- SUSPENSION DATASET IMPORTS --------------- */
INSERT INTO public.suspension(
INSERT INTO suspension(
sanctionid, duree)
VALUES (2, 7);
INSERT INTO public.suspension(
INSERT INTO suspension(
sanctionid, duree)
VALUES (1, 14);
INSERT INTO public.suspension(
INSERT INTO suspension(
sanctionid, duree)
VALUES (3, 7);
INSERT INTO public.suspension(
INSERT INTO suspension(
sanctionid, duree)
VALUES (4, 21);
INSERT INTO public.suspension(
INSERT INTO suspension(
sanctionid, duree)
VALUES (5, 7);
/* --------------- REMBOURSEMENT DATASET IMPORTS --------------- */
INSERT INTO public.remboursement(
INSERT INTO remboursement(
sanctionid, dateecheance, montant, refexemplaire)
VALUES (1, TO_DATE('30/06/2021', 'DD/MM/YYYY'), 15.0, '8965');
INSERT INTO public.remboursement(
INSERT INTO remboursement(
sanctionid, dateecheance, montant, refexemplaire)
VALUES (4, TO_DATE('31/05/2020', 'DD/MM/YYYY'), 10.0, '5696');
INSERT INTO public.remboursement(
INSERT INTO remboursement(
sanctionid, dateecheance, montant, refexemplaire)
VALUES (3, TO_DATE('30/06/2021', 'DD/MM/YYYY'), 20.0, '5236');
INSERT INTO public.remboursement(
INSERT INTO remboursement(
sanctionid, dateecheance, montant, refexemplaire)
VALUES (6, TO_DATE('30/06/2020', 'DD/MM/YYYY'), 12.0, '11456');
/*-------------------- TABLE PRET DATASET IMPORTS ----------------------*/
INSERT INTO public.pret(date, duree, adherent)
INSERT INTO pret(date, duree, adherent)
VALUES ('08-06-2020', 15, 'cdupont');
INSERT INTO public.pret(date, duree, adherent)
INSERT INTO pret(date, duree, adherent)
VALUES ('10-06-2020', 21, 'dnicolas');
INSERT INTO public.pret(date, duree, adherent)
INSERT INTO pret(date, duree, adherent)
VALUES ('12-06-2020', 15, 'dnicolas');
INSERT INTO public.pret(date, duree, adherent)
INSERT INTO pret(date, duree, adherent)
VALUES (CURRENT_TIMESTAMP, 10, 'mmarsal');
INSERT INTO public.pret(date, duree, adherent)
INSERT INTO pret(date, duree, adherent)
VALUES (CURRENT_TIMESTAMP, 10, 'msolan');
INSERT INTO public.pret(date, duree, adherent)
INSERT INTO pret(date, duree, adherent)
VALUES ('12-06-2021', 15, 'hlefebvre');
INSERT INTO public.pret(date, duree, adherent)
INSERT INTO pret(date, duree, adherent)
VALUES ('10-09-2020', 15, 'hbernard');
INSERT INTO public.pret(date, duree, adherent)
INSERT INTO pret(date, duree, adherent)
VALUES ('10-10-2020', 21, 'lbernard');
/*-------------------- TABLE EXEMPLAIRE-PRET DATASET IMPORTS ----------------------*/
INSERT INTO public.exemplairepret(
INSERT INTO exemplairepret(
pret, ref)
VALUES (1, 10057);
INSERT INTO public.exemplairepret(
INSERT INTO exemplairepret(
pret, ref)
VALUES (1, 1125);
INSERT INTO public.exemplairepret(
INSERT INTO exemplairepret(
pret, ref)
VALUES (1, 5509);
INSERT INTO public.exemplairepret(
INSERT INTO exemplairepret(
pret, ref)
VALUES (2, 8966);
INSERT INTO public.exemplairepret(
INSERT INTO exemplairepret(
pret, ref)
VALUES (2, 9000);
INSERT INTO public.exemplairepret(
INSERT INTO exemplairepret(
pret, ref)
VALUES (3, 5506);
INSERT INTO public.exemplairepret(
INSERT INTO exemplairepret(
pret, ref)
VALUES (3, 5507);
INSERT INTO public.exemplairepret(
INSERT INTO exemplairepret(
pret, ref)
VALUES (4, 10056);
INSERT INTO public.exemplairepret(
INSERT INTO exemplairepret(
pret, ref)
VALUES (4, 5510);
INSERT INTO public.exemplairepret(
INSERT INTO exemplairepret(
pret, ref)
VALUES (5, 6000);
INSERT INTO public.exemplairepret(
INSERT INTO exemplairepret(
pret, ref)
VALUES (5, 623);
INSERT INTO public.exemplairepret(
INSERT INTO exemplairepret(
pret, ref)
VALUES (6, 11456);
INSERT INTO public.exemplairepret(
INSERT INTO exemplairepret(
pret, ref)
VALUES (6, 5236);
INSERT INTO public.exemplairepret(
INSERT INTO exemplairepret(
pret, ref)
VALUES (7, 5696);
INSERT INTO public.exemplairepret(
INSERT INTO exemplairepret(
pret, ref)
VALUES (7, 8965);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment