nonNull-back/src/main/resources/db.changelog/1.0/2025-02-18--0001-user.xml
2025-02-19 18:38:14 +03:00

38 lines
1.7 KiB
XML

<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext"
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.8.xsd
http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd">
<changeSet id="2025-02-18--0001-user" author="agavrilov">
<preConditions>
<not>
<tableExists tableName="user"/>
</not>
</preConditions>
<createTable tableName="user">
<column name="id" type="BIGINT" autoIncrement="true">
<constraints nullable="false" primaryKey="true"/>
</column>
<column name="username" type="VARCHAR(50)">
<constraints unique="true" nullable="false"/>
</column>
<column name="password" type="VARCHAR(255)">
<constraints nullable="false"/>
</column>
<column name="name" type="VARCHAR(100)">
<constraints nullable="false"/>
</column>
<column name="photo" type="VARCHAR(200)"/>
<column name="position" type="VARCHAR(50)">
<constraints nullable="false"/>
</column>
<column name="authorities" type="VARCHAR(20)">
<constraints nullable="false"/>
</column>
<column name="lastVisit" type="VARCHAR(100)"/>
</createTable>
</changeSet>
</databaseChangeLog>