package cn.lihongjie.coal.jobPost.entity;

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

import io.hypersistence.utils.hibernate.type.array.ListArrayType;

import jakarta.persistence.Column;
import jakarta.persistence.Entity;

import lombok.Data;

import org.hibernate.annotations.Comment;
import org.hibernate.annotations.Type;

import java.util.List;

@Data
@Entity

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

public class JobPostEntity extends OrgCommonEntity {


    @Comment("绑定部门")
    @Column(columnDefinition = "text[]")
    @Type(ListArrayType.class)
    private List<String> departmentIds;




}