Skip to content

Commit

Permalink
[Improvement] Support username field of user table unique key (apache…
Browse files Browse the repository at this point in the history
  • Loading branch information
AnemoneIndicum authored Jun 15, 2024
1 parent 376050d commit f3832e7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/sql/paimon-mysql.sql
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ CREATE TABLE if not exists `user`
`enabled` tinyint(1) NOT NULL DEFAULT 1 COMMENT 'is enable',
`is_delete` tinyint(1) NOT NULL DEFAULT 0 COMMENT 'is delete',
`create_time` datetime(0) NULL DEFAULT CURRENT_TIMESTAMP COMMENT 'create time',
`update_time` datetime(0) NULL DEFAULT CURRENT_TIMESTAMP COMMENT 'update time'
`update_time` datetime(0) NULL DEFAULT CURRENT_TIMESTAMP COMMENT 'update time',
UNIQUE KEY `username` (`username`)
) ENGINE = InnoDB DEFAULT CHARSET=utf8;

DROP TABLE IF EXISTS `tenant`;
Expand Down

0 comments on commit f3832e7

Please sign in to comment.