def convert_column_to_int_or_id(type, attribute, registry=None):
if attribute.is_hash_key:
return ID(description=attribute.attr_name, required=not attribute.null)
return Int(description=attribute.attr_name, required=not attribute.null)
评论列表
文章目录