fix frontend model template not nullable

This commit is contained in:
2025-11-14 01:28:42 +01:00
parent 284bc3b21a
commit a5b40b0fb5
2 changed files with 3 additions and 3 deletions

View File

@@ -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
}