<?xml version="1.0" encoding="UTF-8"?>
<domain-models xmlns="http://axelor.com/xml/ns/domain-models" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
	xsi:schemaLocation="http://axelor.com/xml/ns/domain-models http://axelor.com/xml/ns/domain-models/domain-models_5.2.xsd">

	<module name="talent" package="com.axelor.apps.talent.db"/>

	<entity name="JobApplication" lang="java" cacheable="true">
		<string name="lastName" title="Last name" />
		<string name="firstName" title="First name" />
		<string name="fullName" title="Full name" namecolumn="true" />
		<one-to-one name="emailAddress" ref="com.axelor.apps.message.db.EmailAddress" title="Email" />
		<string name="fixedPhone" title="Fixed phone" />
		<string name="mobilePhone" title="Mobile phone" />
		<many-to-one name="educationLevel" ref="EducationLevel" title="Level of education" />
		<integer name="experienceSelect" title="Work experience" selection="job.position.experience.select" />
		<many-to-many name="industrySectorSet" title="Business sectors" ref="com.axelor.apps.base.db.IndustrySector"/>
		<string name="linkedInProfile" title="LinkedIn profile" />
		<many-to-one name="talentSource" ref="com.axelor.apps.talent.db.TalentSource" title="Source" />
		<string name="referredBy" title="Referred by" />
		<integer name="appreciation" title="Appreciation" selection="training.register.rating.select" />
		<many-to-one name="jobPosition" ref="JobPosition"  title="Applied job" required="true" />
		<many-to-one name="responsible" ref="com.axelor.apps.hr.db.Employee" title="Responsible" />
		<many-to-one name="employee" ref="com.axelor.apps.hr.db.Employee" title="Employee hired" />
		<string name="expectedSalary" title="Expected salary" />
		<string name="proposedSalary" title="Proposed salary" />
		<date name="availabilityFrom" title="Availability from" />
		<string name="description" title="Description" large="true"/> 
		<integer name="statusSelect" title="Status" selection="job.application.status.select" />
		<many-to-one name="hiringStage" ref="com.axelor.apps.talent.db.HiringStage" title="Hiring stage"/>
		<string name="reasonNotHired" title="Reason not hired" large="true"/>
		<many-to-many name="skillSet" title="Skills tag" ref="Skill"/>
		<many-to-one name="picture" ref="com.axelor.meta.db.MetaFile" title="Photo" initParam="true"/>
		<date name="creationDate" title="Date of application"/>
		<integer name="titleSelect" title="Title" selection="partner.title.type.select"/>
		<string name="fax" title="Fax"/>
		<many-to-one name="employeeAddress" title="Address" ref="com.axelor.apps.base.db.Address"/>
		<extra-code>
	   		<![CDATA[
	   			public static final Integer STATUS_OPEN = 0;
	   			public static final Integer STATUS_HIRED = 1;
	   			public static final Integer STATUS_REJECTED = 2;
	   			public static final Integer STATUS_CANCELLED = 3;
	   		]]>
   		</extra-code>
	</entity>

</domain-models>
