Files
java-tutorials/persistence-modules/spring-boot-persistence-2/src/test/resources/schema.sql
T
timis1 bb9e5b65b4 JAVA-20165 Upgrade spring-boot hibernate specific modules to JDK 11 (#13952)
* JAVA-20165 Upgrade spring-boot hibernate specific modules to JDK 11

* JAVA-20165 Migrating spring-boot-persistence-mongodb

* JAVA-20165 Migrating spring-boot-persistence-mongodb-2

* JAVA-20165 Migrating spring-boot-persistence-mongodb-3

* JAVA-20165 Adding latest version for jdbi in spring-boot-persistence-2 module

---------

Co-authored-by: timis1 <noreplay@yahoo.com>
2023-05-12 19:14:03 +05:30

28 lines
544 B
SQL

drop table if exists car_maker;
drop table if exists car_model;
--
-- Car makers table
--
create table car_maker(
id identity,
name varchar(128) not null
);
create unique index ui_car_maker_01 on car_maker(name);
--
-- Car models table
--
create table car_model(
id identity,
maker_fk int not null,
name varchar(128) not null,
sku varchar(128) not null,
yearDate int not null
);
create unique index ui_car_model_01 on car_model(maker_fk,sku);
create unique index ui_car_model_02 on car_model(maker_fk,name,yearDate);