package ${basePackage}.entity;

import com.qqchen.deploy.backend.framework.domain.Entity;
import jakarta.persistence.*;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.time.LocalDateTime;

/**
 * ${moduleName}实体
 */
@Data
@EqualsAndHashCode(callSuper = true)
@jakarta.persistence.Entity
@Table(name = "${tableName}")
public class ${className} extends Entity<Long> {

<#list fields as field>
    <#if field.comment??>
    /**
     * ${field.comment}
     */
    </#if>
    @Column(name = "${field.columnName}"<#if !field.nullable>, nullable = false</#if>)
    private ${field.fieldType} ${field.fieldName};

</#list>
} 