debut ajout compte joint
This commit is contained in:
@@ -8,4 +8,6 @@
|
||||
<include file="changeset/create-account.xml" relativeToChangelogFile="true"/>
|
||||
<include file="changeset/create-shared-account.xml" relativeToChangelogFile="true"/>
|
||||
<include file="changeset/create-expenses.xml" relativeToChangelogFile="true"/>
|
||||
<include file="changeset/create-jointaccount.xml" relativeToChangelogFile="true"/>
|
||||
<include file="changeset/create-jointexpenses.xml" relativeToChangelogFile="true"/>
|
||||
</databaseChangeLog>
|
||||
|
||||
28
liquibase/changelogs/changeset/create-jointaccount.xml
Normal file
28
liquibase/changelogs/changeset/create-jointaccount.xml
Normal file
@@ -0,0 +1,28 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<databaseChangeLog xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
|
||||
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.5.xsd">
|
||||
<changeSet id="add-jointaccount-table" author="kratisto">
|
||||
<createTable tableName="jointaccount">
|
||||
<column name="id" type="uuid" defaultValueComputed="gen_random_uuid()">
|
||||
<constraints nullable="false" unique="true"/>
|
||||
</column>
|
||||
<column name="name" type="text" >
|
||||
<constraints nullable="true"/>
|
||||
</column>
|
||||
<column name="provider" type="text">
|
||||
<constraints nullable="true"/>
|
||||
</column>
|
||||
<column name="user_id" type="uuid" >
|
||||
<constraints nullable="false"/>
|
||||
</column>
|
||||
<column name="created_at" type="timestamp" defaultValueComputed="now()">
|
||||
<constraints nullable="true"/>
|
||||
</column>
|
||||
<column name="updated_at" type="timestamp">
|
||||
<constraints nullable="true"/>
|
||||
</column>
|
||||
</createTable>
|
||||
</changeSet>
|
||||
</databaseChangeLog>
|
||||
34
liquibase/changelogs/changeset/create-jointexpenses.xml
Normal file
34
liquibase/changelogs/changeset/create-jointexpenses.xml
Normal file
@@ -0,0 +1,34 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<databaseChangeLog xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
|
||||
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.5.xsd">
|
||||
<changeSet id="add-jointexpenses-table" author="kratisto">
|
||||
<createTable tableName="jointexpense">
|
||||
<column name="id" type="uuid" defaultValueComputed="gen_random_uuid()">
|
||||
<constraints nullable="false" unique="true"/>
|
||||
</column>
|
||||
<column name="jointaccount_id" type="uuid">
|
||||
<constraints nullable="false"/>
|
||||
</column>
|
||||
<column name="libelle" type="text" >
|
||||
<constraints nullable="true"/>
|
||||
</column>
|
||||
<column name="value" type="number">
|
||||
<constraints nullable="false"/>
|
||||
</column>
|
||||
<column name="type_jointexpense" type="char(1)">
|
||||
<constraints nullable="false"/>
|
||||
</column>
|
||||
<column name="jointexpense_date" type="timestamp" defaultValueComputed="now()">
|
||||
<constraints nullable="true"/>
|
||||
</column>
|
||||
<column name="created_at" type="timestamp" defaultValueComputed="now()">
|
||||
<constraints nullable="true"/>
|
||||
</column>
|
||||
<column name="updated_at" type="timestamp">
|
||||
<constraints nullable="true"/>
|
||||
</column>
|
||||
</createTable>
|
||||
</changeSet>
|
||||
</databaseChangeLog>
|
||||
Reference in New Issue
Block a user