cardinalities, types for attributes | sql prototype