diff --git a/pic-sure-api-data/src/main/resources/db/sql/V6__ADD_SITE_TABLE.sql b/pic-sure-api-data/src/main/resources/db/sql/V6__ADD_SITE_TABLE.sql new file mode 100644 index 00000000..4eb9f928 --- /dev/null +++ b/pic-sure-api-data/src/main/resources/db/sql/V6__ADD_SITE_TABLE.sql @@ -0,0 +1,11 @@ +USE `picsure`; + +CREATE TABLE `site` ( + `uuid` binary(16) NOT NULL, + `code` varchar(15) COLLATE utf8_bin DEFAULT NULL, + `name` varchar(255) COLLATE utf8_bin DEFAULT NULL, + `domain` varchar(255) COLLATE utf8_bin DEFAULT NULL, + PRIMARY KEY (`uuid`), + CONSTRAINT `unique_code` UNIQUE (`code`), + CONSTRAINT `unique_domain` UNIQUE (`domain`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin;