<?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="bank-payment" package="com.axelor.apps.bankpayment.db"/>
  
  <entity name="EbicsCertificate" lang="java">
  
	<many-to-one name="ebicsBank" ref="EbicsBank" title="Bank" />
	<string name="typeSelect" title="Type" selection="bankpayment.ebics.certificate.type.select" required="true" />
	<date name="validFrom" title="Valid from" />
	<date name="validTo" title="Valid to"  />
	<string name="issuer" title="Issuer" />
	<string name="subject" title="Subject"/>
	<binary name="certificate" title="Certificate" />
	<string name="serial" title="Serial"/>
	
	<binary name="privateKey" title="PrivateKey"  />
	<string name="publicKeyModulus" title="PublicKeyModulus" large="true" multiline="true" />
	<string name="publicKeyExponent" title="PublicKeyExponent" large="true" multiline="true" />
	<string name="fullName" title="Full name" namecolumn="true" />
	<string name="pemString" title="PEM" large="true"/>
	<string name="sha2has" title="SHA2(256)" large="true" />
	<datetime name="initLetterEditionDate" title="Initialization Letter edition date" />
	
	<many-to-many name="batchSet" ref="com.axelor.apps.base.db.Batch" title="Batchs"/>
	 
<!-- 	<unique-constraint columns="ebicsBank,typeSelect" /> -->
	
	 <extra-code><![CDATA[
	  
	  	// TYPE SELECT
		public static final String TYPE_SSL = "ssl";
		public static final String TYPE_ENCRYPTION = "encryption";
		public static final String TYPE_AUTHENTICATION = "authentication";
		public static final String TYPE_SIGNATURE = "signature";
	
	]]></extra-code>
	
  </entity>


</domain-models>
