auth_group_permissions

Description

Table Definition
CREATE TABLE `auth_group_permissions` (
  `id` int NOT NULL AUTO_INCREMENT,
  `group_id` int NOT NULL,
  `permission_id` int NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `auth_group_permissions_group_id_permission_id_0cd325b0_uniq` (`group_id`,`permission_id`),
  KEY `auth_group_permissio_permission_id_84c5c92e_fk_auth_perm` (`permission_id`),
  CONSTRAINT `auth_group_permissio_permission_id_84c5c92e_fk_auth_perm` FOREIGN KEY (`permission_id`) REFERENCES `auth_permission` (`id`),
  CONSTRAINT `auth_group_permissions_group_id_b120cbf9_fk_auth_group_id` FOREIGN KEY (`group_id`) REFERENCES `auth_group` (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci

Columns

NameTypeDefaultNullableExtra DefinitionChildrenParentsComment
idintfalseauto_increment
group_idintfalseauth_group
permission_idintfalseauth_permission

Constraints

NameTypeDefinition
auth_group_permissio_permission_id_84c5c92e_fk_auth_permFOREIGN KEYFOREIGN KEY (permission_id) REFERENCES auth_permission (id)
auth_group_permissions_group_id_b120cbf9_fk_auth_group_idFOREIGN KEYFOREIGN KEY (group_id) REFERENCES auth_group (id)
auth_group_permissions_group_id_permission_id_0cd325b0_uniqUNIQUEUNIQUE KEY auth_group_permissions_group_id_permission_id_0cd325b0_uniq (group_id, permission_id)
PRIMARYPRIMARY KEYPRIMARY KEY (id)

Indexes

NameDefinition
auth_group_permissio_permission_id_84c5c92e_fk_auth_permKEY auth_group_permissio_permission_id_84c5c92e_fk_auth_perm (permission_id) USING BTREE
PRIMARYPRIMARY KEY (id) USING BTREE
auth_group_permissions_group_id_permission_id_0cd325b0_uniqUNIQUE KEY auth_group_permissions_group_id_permission_id_0cd325b0_uniq (group_id, permission_id) USING BTREE

Relations

er


Generated by tbls