auth_user_groups

Description

Table Definition
CREATE TABLE `auth_user_groups` (
  `id` int NOT NULL AUTO_INCREMENT,
  `user_id` int NOT NULL,
  `group_id` int NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `auth_user_groups_user_id_group_id_94350c0c_uniq` (`user_id`,`group_id`),
  KEY `auth_user_groups_group_id_97559544_fk_auth_group_id` (`group_id`),
  CONSTRAINT `auth_user_groups_group_id_97559544_fk_auth_group_id` FOREIGN KEY (`group_id`) REFERENCES `auth_group` (`id`),
  CONSTRAINT `auth_user_groups_user_id_6a12ed8b_fk_auth_user_id` FOREIGN KEY (`user_id`) REFERENCES `auth_user` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci

Columns

NameTypeDefaultNullableExtra DefinitionChildrenParentsComment
idintfalseauto_increment
user_idintfalseauth_user
group_idintfalseauth_group

Constraints

NameTypeDefinition
auth_user_groups_group_id_97559544_fk_auth_group_idFOREIGN KEYFOREIGN KEY (group_id) REFERENCES auth_group (id)
auth_user_groups_user_id_6a12ed8b_fk_auth_user_idFOREIGN KEYFOREIGN KEY (user_id) REFERENCES auth_user (id)
auth_user_groups_user_id_group_id_94350c0c_uniqUNIQUEUNIQUE KEY auth_user_groups_user_id_group_id_94350c0c_uniq (user_id, group_id)
PRIMARYPRIMARY KEYPRIMARY KEY (id)

Indexes

NameDefinition
auth_user_groups_group_id_97559544_fk_auth_group_idKEY auth_user_groups_group_id_97559544_fk_auth_group_id (group_id) USING BTREE
PRIMARYPRIMARY KEY (id) USING BTREE
auth_user_groups_user_id_group_id_94350c0c_uniqUNIQUE KEY auth_user_groups_user_id_group_id_94350c0c_uniq (user_id, group_id) USING BTREE

Relations

er


Generated by tbls