From 50958eadc8553dac2d7ee6a288386ba0303f774b Mon Sep 17 00:00:00 2001 From: Thomas Chazot Date: Tue, 10 Jan 2023 13:19:30 +0100 Subject: [PATCH] ajout pour test api --- api-rest/initBdd.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/api-rest/initBdd.php b/api-rest/initBdd.php index 25f3add..82b2dde 100644 --- a/api-rest/initBdd.php +++ b/api-rest/initBdd.php @@ -205,6 +205,14 @@ $conn->query("INSERT INTO `T_E_GAME_GAM` (`PK_ID`, `GAM_NAME`, `GAM_IMAGE`, `GAM $conn->query("INSERT INTO `T_S_USER_USR` (`PK_ID`, `USR_USERNAME`, `USR_PASSWORD`, `USR_NATIONALITY`, `USR_SEX`, `USR_DATE_OF_BIRTH`, `USR_CURRENT_NB_COINS`, `USR_TOTAL_NB_COINS`, `USR_NB_GAMES_PLAYED`, `FK_CURRENT_SKIN`) VALUES (1, 'to', 't', 'Anglais(e)', 'M', '2003-07-01', 105, 230, 12, 2);"); +$conn->query("INSERT INTO `T_S_USER_USR` (`PK_ID`, `USR_USERNAME`, `USR_PASSWORD`, `USR_NATIONALITY`, `USR_SEX`, `USR_DATE_OF_BIRTH`, `USR_CURRENT_NB_COINS`, `USR_TOTAL_NB_COINS`, `USR_NB_GAMES_PLAYED`, `FK_CURRENT_SKIN`) VALUES +(1, 'to', 't', 'Anglais(e)', 'M', '2003-07-01', 105, 230, 12, 1);"); + +$conn->query("INSERT INTO `T_J_OWN_SKIN_OWN` (`FK_USER`, `FK_SKIN`) VALUES +(1, 1) +(1, 2);"); + + ?> \ No newline at end of file