From c5ebd0297ca879ebc461dbe874b25a2db8f15d5d Mon Sep 17 00:00:00 2001 From: Pierre-antoine Comby Date: Sat, 22 Feb 2020 16:33:35 +0100 Subject: [PATCH] Make disctinction between club/user/special --- map_db.json | 388 ++++++++++++++++++++++++++++++++-------------------- 1 file changed, 237 insertions(+), 151 deletions(-) diff --git a/map_db.json b/map_db.json index bd8b19c5..edde898b 100644 --- a/map_db.json +++ b/map_db.json @@ -1,161 +1,247 @@ { "comptes":{ - "idbde":{ - "app":"note", - "model":"Note", - "field":"id" + "personne":{ + "idbde":{ + "app":"note", + "model":"NoteUser", + "field":"id" + }, + "type": null, + "pseudo":{ + "app":"member", + "model":"User", + "field":"username" + }, + "passwd":{ + "app":"member", + "model":"User", + "field":"password" + }, + "solde":{ + "app":"note", + "model":"NoteUser", + "field":"solde" + }, + "nom":{ + "app":"member", + "model":"User", + "field":"first_name" + }, + "prenom":{ + "app":"member", + "model":"User", + "field":"last_name" + }, + "tel":{ + "app":"member", + "model":"Profile", + "field":"phone_number" + }, + "mail":{ + "app":"member", + "model":"User", + "field":"email" + }, + "adresse":{ + "app":"member", + "model":"Profile", + "field":"address" + }, + "fonction": null, + "normalien":{ + "app":"member", + "model":"Profile", + "field":"paid" + }, + "pbsante": null, + "droit": null, + "surdroit": null, + "supreme": null, + "bloque": null, + "last_adhesion": null, + "commentaire":null, + "last_negatif": null, + "deleted":null }, - "type": null, - "pseudo":{ - "app":"member", - "model":"User", - "field":"username" + "club":{ + "idbde":{ + "app":"note", + "model":"NoteClub", + "field":"id" + }, + "type": null, + "pseudo":{ + "app":"member", + "model":"Club", + "field":"name" + }, + "passwd":null, + "solde":{ + "app":"note", + "model":"NoteClub", + "field":"solde" + }, + "nom":null, + "prenom":null, + "tel":null, + "mail":{ + "app":"member", + "model":"Club", + "field":"email" + }, + "adresse":null, + "fonction": null, + "normalien": null, + "pbsante": null, + "droit": null, + "surdroit": null, + "supreme": null, + "bloque": null, + "last_adhesion": null, + "commentaire":null, + "last_negatif": null, + "deleted":null }, - "passwd":{ - "app":"member", - "model":"User", - "field":"password" + "special":{ + "idbde":{ + "app":"note", + "model":"NoteSpecial", + "field":"id" + }, + "type": null, + "pseudo":{ + "app":"member", + "model":"NoteSpecial", + "field":"special_type" + }, + "passwd":null, + "solde":{ + "app":"note", + "model":"NoteClub", + "field":"solde" + }, + "nom":null, + "prenom":null, + "tel":null, + "mail":null, + "adresse":null, + "fonction": null, + "normalien": null, + "pbsante": null, + "droit": null, + "surdroit": null, + "supreme": null, + "bloque": null, + "last_adhesion": null, + "commentaire":null, + "last_negatif": null, + "deleted":null }, - "solde":{ - "app":"note", - "model":"Note", - "field":"solde" - }, - "nom":{ - "app":"member", - "model":"User", - "field":"first_name", - }, - "prenom":{ - "app":"member", - "model":"User", - "field":"last_name" - }, - "tel":{ - "app":"member", - "model":"Profile", - "field":"phone_number", - }, - "mail":{ - "app":"member", - "model":"User", - "field":"email" - }, - "adresse":{ - "app":"member", - "model":"Profile", - "field":"address" - }, - "fonction": null, - "normalien":{ - "app":"member", - "model":"Profile", - "field":"paid" - }, - "pbsante": null, - "droit": null, - "surdroit": null, - "supreme": null, - "bloque": null, - "last_adhesion": null, - "commentaire":null, - "last_negatif": null, - "deleted":null + } + +}, +"transactions":{ + "id":{ + "app":"note", + "model":"Transaction", + "field":"" + },"Transaction.id", + "date":{ + "app":"note", + "model":"Transaction", + "field":"" + }"Transaction.created_at", + "type":{ + "app":"note", + "model":"Transaction", + "field":"" + } null, + "emetteur":{ + "app":"note", + "model":"Transaction", + "field":"id" }, - "transactions":{ - "id":{ - "app":"note", - "model":"Transaction", - "field":"" - },"Transaction.id", - "date":{ - "app":"note", - "model":"Transaction", - "field":"" - }"Transaction.created_at", - "type":{ - "app":"note", - "model":"Transaction", - "field":"" - } null, - "emetteur":{ - "app":"note", - "model":"Transaction", - "field":"id" - }, - "destinataire":{ - "app":"note", - "model":"Transaction", - "field":"destination_id" - }, - "quantite":{ - "app":"note", - "model":"Transaction", - "field":"quantity" - }, - "montant":{ - "app":"note", - "model":"Transaction", - "field":"amount" - }, - "description":{ - "app":"note", - "model":"Transaction", - "field":"reason" - }, - "valide":{ - "app":"note", - "model":"Transaction", - "field":"valid" - }, - "cantinvalidate": null, - "categorie":{ - "app":"note", - "model":"Transaction", - "field":"transaction_type" - } + "destinataire":{ + "app":"note", + "model":"Transaction", + "field":"destination_id" }, - "boutons":{ - "id":{ - "app":"note", - "model":"Transaction", - "field":"transaction_type" - }"TransactionTemplate.id", - "label":{ - "app":"note", - "model":"TransactionTemplate", - "field":"name" - }, - "montant":{ - "app":"note", - "model":"TransactionTemplate", - "field":"amount" - }, - "destinataire":{ - "app":"note", - "model":"TransactionTemplate", - "field":"destination_id" - }, - "categorie":null, - "affiche":null, - "description":null, - "consigne":null + "quantite":{ + "app":"note", + "model":"Transaction", + "field":"quantity" }, - "aliases":{ - "id":{ - "app":"note", - "model":"Alias", - "field":"id" - }, - "alias":{ - "app":"note", - "model":"Alias", - "field":"name" - }, - "idbde":{ - "app":"note", - "model":"Alias", - "field":"note_id" - } + "montant":{ + "app":"note", + "model":"Transaction", + "field":"amount" + }, + "description":{ + "app":"note", + "model":"Transaction", + "field":"reason" + }, + "valide":{ + "app":"note", + "model":"Transaction", + "field":"valid" + }, + "cantinvalidate": null, + "categorie":{ + "app":"note", + "model":"Transaction", + "field":"transaction_type" + } +}, +"boutons":{ + "id":{ + "app":"note", + "model":"TransactionTemplate", + "field":"pk" + } + "label":{ + "app":"note", + "model":"TransactionTemplate", + "field":"name" + }, + "montant":{ + "app":"note", + "model":"TransactionTemplate", + "field":"amount" + }, + "destinataire":{ + "app":"note", + "model":"TransactionTemplate", + "field":"destination_id" + }, + "categorie":null, + "affiche":{ + "app":"note", + "model":"TransactionTemplate", + "field":"display" + }, + "description":{ + "app":"note", + "model":"TransactionTemplate", + "field":"description" + }, + "consigne":null +}, +"aliases":{ + "id":{ + "app":"note", + "model":"Alias", + "field":"id" + }, + "alias":{ + "app":"note", + "model":"Alias", + "field":"name" + }, + "idbde":{ + "app":"note", + "model":"Alias", + "field":"note_id" } } +}