hz-zhhq-app-service/greenH5modul/.svn/pristine/7a/7a42a1b698e4ab8589c1c659857...

103 lines
3.8 KiB
Plaintext
Raw Normal View History

2025-01-21 13:12:35 +08:00
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<hibernate-mapping auto-import="false">
<class name="com.nationalelectric.greenH5.po.GreenPersonElecAcc" table="green_person_elec_acc">
<comment>green_person_elec_acc</comment>
<!-- single primaryKey -->
<id name="id" type="java.lang.Long">
<column name="ID" length="19"/>
<generator class="org.hibernate.id.enhanced.TableGenerator">
<param name="table_name">green_seq</param>
<param name="segment_column_name">table_name</param>
<param name="value_column_name">max_id</param>
<param name="segment_value">GREEN_PERSON_ELEC_ACC</param>
<param name="initial_value">100000</param>
</generator>
</id>
<property name="personName" type="string" length="100" not-null="true">
<column name="PERSON_NAME" sql-type="VARCHAR2(100) default '未知'">
<comment>用户姓名</comment>
</column>
</property>
<property name="account" type="string" length="100" not-null="true">
<column name="ACCOUNT">
<comment>账号</comment>
</column>
</property>
<property name="departName" type="string" length="100" not-null="false">
<column name="DEPART_NAME">
<comment>部门</comment>
</column>
</property>
<property name="phone" type="string" length="11" not-null="true">
<column name="PHONE">
<comment>联系电话</comment>
</column>
</property>
<property name="balance" type="big_decimal" length="10" not-null="true">
<column name="BALANCE" sql-type="NUMBER(10) default 0.00">
<comment>现金余额</comment>
</column>
</property>
<property name="type" type="string" not-null="false">
<column name="TYPE" sql-type="VARCHAR2 default '0'">
<comment>0对公账户,1代表私人账户</comment>
</column>
</property>
<property name="isLock" type="character" not-null="false">
<column name="IS_LOCK" sql-type="CHAR(1) default '0'">
<comment>账户锁定。0未锁定1锁定</comment>
</column>
</property>
<property name="phyIc" type="string" length="100" not-null="false">
<column name="PHY_IC">
<comment>用户物理卡号</comment>
</column>
</property>
<property name="isDel" type="character" not-null="false">
<column name="IS_DEL" sql-type="CHAR(1) default '0'">
<comment>账号是否删除0未删除1删除</comment>
</column>
</property>
<property name="creater" type="string" length="40" not-null="false">
<column name="CREATER">
<comment>创建人</comment>
</column>
</property>
<property name="createTime" type="date" not-null="false">
<column name="CREATE_TIME" sql-type="DATE default CURRENT_TIMESTAMP">
<comment>创建时间</comment>
</column>
</property>
<property name="updater" type="string" length="40" not-null="false">
<column name="UPDATER">
<comment>更新人</comment>
</column>
</property>
<property name="updateTime" type="date" not-null="false">
<column name="UPDATE_TIME">
<comment>更新时间</comment>
</column>
</property>
<property name="personId" type="string" length="50" not-null="false">
<column name="PERSON_ID">
<comment>用户id关联green_uesr_info表</comment>
</column>
</property>
</class>
</hibernate-mapping>