migration.V3__add_teams.sql Maven / Gradle / Ivy
CREATE TABLE `teams` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`name` varchar(100) NOT NULL,
`created_ts` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`updated_ts` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`is_deleted` tinyint(1) DEFAULT '0',
PRIMARY KEY (`id`)
);
CREATE TABLE `encryption_keys` (
`id` bigint(20) NOT NULL AUTO_INCREMENT,
`team_id` bigint(20) NOT NULL,
`encryption_key` varchar(512) NOT NULL,
`is_deleted` tinyint(1) DEFAULT '0',
`created_ts` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`updated_ts` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
PRIMARY KEY (`id`),
KEY `idx_team_id` (`team_id`)
)
© 2015 - 2025 Weber Informatics LLC | Privacy Policy