auth_user_user_permissions

Description

Table Definition
CREATE TABLE `auth_user_user_permissions` (
  `id` int NOT NULL AUTO_INCREMENT,
  `user_id` int NOT NULL,
  `permission_id` int NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `auth_user_user_permissions_user_id_permission_id_14a6b632_uniq` (`user_id`,`permission_id`),
  KEY `auth_user_user_permi_permission_id_1fbb5f2c_fk_auth_perm` (`permission_id`),
  CONSTRAINT `auth_user_user_permi_permission_id_1fbb5f2c_fk_auth_perm` FOREIGN KEY (`permission_id`) REFERENCES `auth_permission` (`id`),
  CONSTRAINT `auth_user_user_permissions_user_id_a95ead1b_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
permission_idintfalseauth_permission

Constraints

NameTypeDefinition
auth_user_user_permi_permission_id_1fbb5f2c_fk_auth_permFOREIGN KEYFOREIGN KEY (permission_id) REFERENCES auth_permission (id)
auth_user_user_permissions_user_id_a95ead1b_fk_auth_user_idFOREIGN KEYFOREIGN KEY (user_id) REFERENCES auth_user (id)
auth_user_user_permissions_user_id_permission_id_14a6b632_uniqUNIQUEUNIQUE KEY auth_user_user_permissions_user_id_permission_id_14a6b632_uniq (user_id, permission_id)
PRIMARYPRIMARY KEYPRIMARY KEY (id)

Indexes

NameDefinition
auth_user_user_permi_permission_id_1fbb5f2c_fk_auth_permKEY auth_user_user_permi_permission_id_1fbb5f2c_fk_auth_perm (permission_id) USING BTREE
PRIMARYPRIMARY KEY (id) USING BTREE
auth_user_user_permissions_user_id_permission_id_14a6b632_uniqUNIQUE KEY auth_user_user_permissions_user_id_permission_id_14a6b632_uniq (user_id, permission_id) USING BTREE

Relations

er


Generated by tbls