[{"pk": 1, "model": "sqlrepost.sqlrepost", "fields": {"users": [], "engine_options": "{'encoding': 'latin1', 'echo': True}"}}, {"pk": 2, "model": "sqlrepost.sqlrepost", "fields": {"users": [], "engine_options": "{'encoding': 'latin1', 'echo': True}"}}, {"pk": 3, "model": "sqlrepost.sqlrepost", "fields": {"users": [], "engine_options": "{'encoding': 'latin1', 'echo': True}"}}, {"pk": 4, "model": "sqlrepost.sqlrepost", "fields": {"users": [], "engine_options": "{'encoding': 'latin1', 'echo': True}"}}, {"pk": 5, "model": "sqlrepost.sqlrepost", "fields": {"users": [], "engine_options": "{'encoding': 'latin1', 'echo': True}"}}, {"pk": 1, "model": "sqlrepost.sqlstatement", "fields": {"output_var": "code_postal", "sqlrepost": 1, "mapping": 2, "statement": "SELECT prenom, nom FROM data_personne WHERE code_postal = :postcode"}}, {"pk": 2, "model": "sqlrepost.sqlstatement", "fields": {"output_var": "commune", "sqlrepost": 1, "mapping": 1, "statement": "SELECT id from data_personne WHERE commune = :commune"}}, {"pk": 3, "model": "sqlrepost.sqlstatement", "fields": {"output_var": "code_postal", "sqlrepost": 2, "mapping": 1, "statement": "SELECT prenom, nom FROM data_personne WHERE code_postal = :postcode"}}, {"pk": 4, "model": "sqlrepost.sqlstatement", "fields": {"output_var": "children", "sqlrepost": 3, "mapping": 1, "statement": "SELECT data_enfant.id, data_enfant.prenom, data_enfant.nom, data_enfant.famille_id FROM data_enfant INNER JOIN data_famille ON data_enfant.famille_id=data_famille.id INNER JOIN data_famille_personnes ON data_famille.id=data_famille_personnes.famille_id WHERE data_famille_personnes.personne_id = :user_id;"}}, {"pk": 5, "model": "sqlrepost.sqlstatement", "fields": {"output_var": "invoices", "sqlrepost": 4, "mapping": 1, "statement": "SELECT data_facture.devise FROM data_facture INNER JOIN data_famille on data_facture.famille_id=data_famille.id WHERE data_famille.id = :famille;"}}, {"pk": 6, "model": "sqlrepost.sqlstatement", "fields": {"output_var": "details", "sqlrepost": 5, "mapping": 0, "statement": "SELECT * FROM data_personne WHERE id = :user_id"}}, {"pk": 2, "model": "sqlrepost.sqlbinding", "fields": {"sqlreport": 1, "expression": "%(code_postal)s", "name": "postcode"}}, {"pk": 3, "model": "sqlrepost.sqlbinding", "fields": {"sqlreport": 1, "expression": "%(commune)s", "name": "commune"}}, {"pk": 4, "model": "sqlrepost.sqlbinding", "fields": {"sqlreport": 2, "expression": "%(code_postal)s", "name": "postcode"}}, {"pk": 5, "model": "sqlrepost.sqlbinding", "fields": {"sqlreport": 3, "expression": "%(user)s", "name": "user_id"}}, {"pk": 6, "model": "sqlrepost.sqlbinding", "fields": {"sqlreport": 4, "expression": "%(account)s", "name": "famille"}}, {"pk": 7, "model": "sqlrepost.sqlbinding", "fields": {"sqlreport": 5, "expression": "%(id)s", "name": "user_id"}}]