47 lines
2.7 KiB
XML
47 lines
2.7 KiB
XML
<?xml version="1.1" encoding="UTF-8" standalone="no"?>
|
|
<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog" xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext" xmlns:pro="http://www.liquibase.org/xml/ns/pro" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd http://www.liquibase.org/xml/ns/pro http://www.liquibase.org/xml/ns/pro/liquibase-pro-latest.xsd http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-latest.xsd">
|
|
<changeSet author="valentin (generated)" id="1663795988954-1">
|
|
<createTable tableName="users">
|
|
<column name="id" type="UUID">
|
|
<constraints nullable="false" primaryKey="true" primaryKeyName="users_pkey"/>
|
|
</column>
|
|
<column name="birth" type="date">
|
|
<constraints nullable="false"/>
|
|
</column>
|
|
<column name="connected_at" type="TIMESTAMP WITHOUT TIME ZONE"/>
|
|
<column name="created_at" type="TIMESTAMP WITHOUT TIME ZONE">
|
|
<constraints nullable="false"/>
|
|
</column>
|
|
<column name="deleted_at" type="TIMESTAMP WITHOUT TIME ZONE"/>
|
|
<column name="email" type="VARCHAR(255)">
|
|
<constraints nullable="false"/>
|
|
</column>
|
|
<column name="firstname" type="VARCHAR(255)">
|
|
<constraints nullable="false"/>
|
|
</column>
|
|
<column name="name" type="VARCHAR(255)">
|
|
<constraints nullable="false"/>
|
|
</column>
|
|
<column name="password" type="VARCHAR(255)">
|
|
<constraints nullable="false"/>
|
|
</column>
|
|
<column name="pseudo" type="VARCHAR(255)">
|
|
<constraints nullable="false"/>
|
|
</column>
|
|
<column name="roles" type="VARCHAR(255)">
|
|
<constraints nullable="false"/>
|
|
</column>
|
|
<column defaultValueNumeric="0" name="status" type="SMALLINT"/>
|
|
<column name="updated_at" type="TIMESTAMP WITHOUT TIME ZONE">
|
|
<constraints nullable="false"/>
|
|
</column>
|
|
</createTable>
|
|
</changeSet>
|
|
<changeSet author="valentin (generated)" id="1663795988954-2">
|
|
<addUniqueConstraint columnNames="email" constraintName="uk_6dotkott2kjsp8vw4d0m25fb7" tableName="users"/>
|
|
</changeSet>
|
|
<changeSet author="valentin (generated)" id="1663795988954-3">
|
|
<addUniqueConstraint columnNames="pseudo" constraintName="uk_r9i2upm423j62a0neosbc8ucq" tableName="users"/>
|
|
</changeSet>
|
|
</databaseChangeLog>
|