package com.hr.repository.domain;

import com.yy.basedevelop.common.entity.BaseHrEntity;
import jakarta.persistence.*;
import lombok.Data;

/**
 * @author yaoy
 * @createTime 2025/9/28 15:15
 **/
@Data
@Entity(name="demo1")
public class Demo1Entity extends BaseHrEntity {
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "fid", nullable = false, updatable = false, columnDefinition = "BIGINT AUTO_INCREMENT COMMENT '主键ID'")
    private Long fid;

    @Column(name = "fname", columnDefinition = "varchar(80)  NULL comment 'fname'")
    private String fname;

    @Column
    private String addrRemark;

    @Version
    protected Long version = 0L;
}
