SQL

CREATE TABLE `team_user`  (
  `id` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL,
  `org_id` INTEGER NULL,
  `team_id` INTEGER NULL,
  `uid` INTEGER NULL
)

+ Add column

Columns

Column Data type Allow null Primary key Actions
id INTEGER Rename | Drop
org_id INTEGER Rename | Drop
team_id INTEGER Rename | Drop
uid INTEGER Rename | Drop

+ Add index

Indexes

Name Columns Unique SQL Drop?
IDX_team_user_org_id org_id SQL
CREATE INDEX `IDX_team_user_org_id`
ON `team_user` (`org_id`)
Drop
UQE_team_user_s
  • team_id
  • uid
SQL
CREATE UNIQUE INDEX `UQE_team_user_s`
ON `team_user` (`team_id`,`uid`)
Drop