package cn.lihongjie.coal.organizationConfig.entity;

import cn.lihongjie.coal.base.entity.OrgCommonEntity;

import jakarta.persistence.Entity;

import lombok.Data;

import org.hibernate.annotations.Comment;

@Data
@Entity

@jakarta.persistence.Table(indexes = @jakarta.persistence.Index(name ="idx_organization_config_org_id", columnList = "organization_id"))

public class OrganizationConfigEntity extends OrgCommonEntity {

    @Comment("采购订单号生成规则 0 手工填写 1 全局递增 2 年月日+递增 3 年月日时分秒 ")
    private String purchaseOrderNoRule;

    @Comment("采购订单号前缀")
    private String purchaseOrderNoPrefix;


    @Comment("采购订单号递增步长")
    private Integer purchaseOrderNoStep;


    @Comment("采购订单号递增起始值")
    private Integer purchaseOrderNoStart;


    @Comment("递增部分位数")
    private Integer purchaseOrderNoAutoIncrLength;












    @Comment("销售订单号生成规则 0 手工填写 1 全局递增 2 年月日+递增 3 年月日时分秒 ")
    private String saleOrderNoRule;

    @Comment("销售订单号前缀")
    private String saleOrderNoPrefix;


    @Comment("销售订单号递增步长")
    private Integer saleOrderNoStep;


    @Comment("销售订单号递增起始值")
    private Integer saleOrderNoStart;


    @Comment("递增部分位数")
    private Integer saleOrderNoAutoIncrLength;





















}