{% macro schema_relationnel(table, atts) -%} {{ table }} ( {% for tuple in atts %} {%- if tuple[2].find('PRIMARY') != -1 and tuple[2].find('FOREIGN') != -1 %} #{{ tuple[0] }} {%- elif tuple[2].find('PRIMARY') != -1 %} {{ tuple[0] }} {%- elif tuple[2].find('FOREIGN') != -1 %} #{{ tuple[0] }} {%- else %} {{ tuple[0] }} {%- endif %} {{- "" if loop.last else ", " -}} {% endfor %} ) {%- endmacro %}