Bugdroid-Back/src/main/resources/db.changelog/1.0/2024-10-20--0002-employee.xml
IndexZero 3edb2cf101 Added all EmployeeController requests, except registration.
Fixed Entities and database relations
Fixed door opening
2025-02-19 11:34:45 +03:00

54 lines
1.8 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<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.0.xsd
http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd">
<changeSet id="2024-10-20--0002-employee" author="okalugin">
<preConditions onFail="MARK_RAN">
<not>
<tableExists tableName="employee"/>
</not>
</preConditions>
<createTable tableName="employee">
<column name="id"
type="bigint"
autoIncrement="true">
<constraints primaryKey="true" nullable="false"/>
</column>
<column name="login" type="VARCHAR(100)">
<constraints nullable="false"/>
</column>
<column name="password" type="VARCHAR(100)">
<constraints nullable="false"/>
</column>
<column name="name" type="VARCHAR(100)">
<constraints nullable="false"/>
</column>
<column name="position" type="VARCHAR(100)">
<constraints nullable="false"/>
</column>
<column name="photo_url" type="VARCHAR(100)">
<constraints nullable="true"/>
</column>
<column name="is_enabled" type="bool">
<constraints nullable="false"/>
</column>
</createTable>
</changeSet>
</databaseChangeLog>