ddm-rrm/src/it/resources/versions/master/data-model/tables/GET/createTables.xml (22 lines of code) (raw):
<?xml version="1.1" encoding="UTF-8" standalone="no"?>
<!--
~ Copyright 2023 EPAM Systems.
~
~ Licensed under the Apache License, Version 2.0 (the "License");
~ you may not use this file except in compliance with the License.
~ You may obtain a copy of the License at
~
~ http://www.apache.org/licenses/LICENSE-2.0
~
~ Unless required by applicable law or agreed to in writing, software
~ distributed under the License is distributed on an "AS IS" BASIS,
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
~ See the License for the specific language governing permissions and
~ limitations under the License.
-->
<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-4.5.xsd
http://www.liquibase.org/xml/ns/dbchangelog-ext https://nexus-public-mdtu-ddm-edp-cicd.apps.cicd2.mdtu-ddm.projects.epam.com/repository/extensions/com/epam/digital/data/platform/liquibase-ext-schema/latest/liquibase-ext-schema-latest.xsd">
<changeSet author="registry owner" id="table first_registry_table">
<createTable tableName="first_registry_table" ext:historyFlag="true"
remarks="Найперша таблиця реєстру">
<column name="first_registry_table_id" type="UUID" defaultValueComputed="uuid_generate_v4()">
<constraints nullable="false" primaryKey="true" primaryKeyName="pk_first_registry_table_id"/>
</column>
<column name="code" type="TEXT" remarks="Код запису">
<constraints nullable="false" unique="true"/>
</column>
<column name="name" type="TEXT" remarks="Назва запису">
<constraints nullable="false"/>
</column>
</createTable>
</changeSet>
</databaseChangeLog>