fix frontend model template not nullable
This commit is contained in:
@@ -10,9 +10,9 @@ import $link.fieldType.replace("[]", "") from "./${link.fieldType.replace("[]",
|
||||
|
||||
export default interface $entity.name {
|
||||
#foreach( $attribute in $entity.attributes )
|
||||
${attribute.name}: ${attribute.type};
|
||||
${attribute.name}: ${attribute.type}#if ( !($attribute.isNotNull()) ) | null#end;
|
||||
#end
|
||||
#foreach( $link in $entity.links )
|
||||
${link.fieldName}: ${link.fieldType};
|
||||
${link.fieldName}: ${link.fieldType}#if ( $link.isOptionalTrue() ) | null#end;
|
||||
#end
|
||||
}
|
||||
Reference in New Issue
Block a user