database.master.xml Maven / Gradle / Ivy
The newest version!
<?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" xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-4.2.xsd"> <include file="classpath:jasmine/security/SecurityLiquibase.xml"/> <changeSet id="jasmine_demo_20220205194301" author="mh.z"> <createTable tableName="sys_user" remarks="用户"> <column name="id" type="bigint" remarks="主键id"> <constraints nullable="false" primaryKey="true" primaryKeyName="pk_sys_user"/> </column> <column name="user_name" type="varchar(100)" remarks="用户名"> <constraints nullable="false"/> </column> <column name="password" type="varchar(100)" remarks="密码"> <constraints nullable="false"/> </column> <column name="tenant_id" type="bigint" remarks="租户ID"> <constraints nullable="false"/> </column> <column name="created_date" type="timestamp" remarks="创建日期" defaultValueComputed="CURRENT_TIMESTAMP"> <constraints nullable="false"/> </column> <column name="created_by" type="bigint" remarks="创建人ID"> <constraints nullable="false"/> </column> <column name="last_updated_date" type="timestamp" remarks="最后更新日期" defaultValueComputed="CURRENT_TIMESTAMP"> <constraints nullable="false"/> </column> <column name="last_updated_by" type="bigint" remarks="最后更新人ID"> <constraints nullable="false"/> </column> <column name="version_number" type="int" remarks="版本号"> <constraints nullable="false"/> </column> </createTable> </changeSet> <changeSet id="jasmine_demo_20220313150701" author="mh.z"> <createTable tableName="demo_sample" remarks="示例"> <column name="id" type="bigint" remarks="主键id"> <constraints nullable="false" primaryKey="true" primaryKeyName="pk_demo_sample"/> </column> <column name="sample_code" type="varchar(100)" remarks="代码"> <constraints nullable="false"/> </column> <column name="sample_name" type="varchar(100)" remarks="名称"> <constraints nullable="false"/> </column> <column name="secret_info" type="varchar(500)" remarks="秘密信息"> <constraints nullable="true"/> </column> <column name="tenant_id" type="bigint" remarks="租户ID"> <constraints nullable="false"/> </column> <column name="created_lang" type="varchar(50)" remarks="语言代码"> <constraints nullable="false"/> </column> <column name="created_date" type="timestamp" remarks="创建日期" defaultValueComputed="CURRENT_TIMESTAMP"> <constraints nullable="false"/> </column> <column name="created_by" type="bigint" remarks="创建人ID"> <constraints nullable="false"/> </column> <column name="last_updated_date" type="timestamp" remarks="最后更新日期" defaultValueComputed="CURRENT_TIMESTAMP"> <constraints nullable="false"/> </column> <column name="last_updated_by" type="bigint" remarks="最后更新人ID"> <constraints nullable="false"/> </column> <column name="version_number" type="int" remarks="版本号"> <constraints nullable="false"/> </column> </createTable> </changeSet> <!-- 预置数据 --> <changeSet id="jasmine_demo_20220214122301" author="mh.z"> <sqlFile encoding="UTF-8" path="init-data.sql" relativeToChangelogFile="true" splitStatements="true" stripComments="true"/> </changeSet> </databaseChangeLog>