auth_permission

Description

Table Definition
CREATE TABLE `auth_permission` (
  `id` int NOT NULL AUTO_INCREMENT,
  `name` varchar(255) NOT NULL,
  `content_type_id` int NOT NULL,
  `codename` varchar(100) NOT NULL,
  PRIMARY KEY (`id`),
  UNIQUE KEY `auth_permission_content_type_id_codename_01ab375a_uniq` (`content_type_id`,`codename`),
  CONSTRAINT `auth_permission_content_type_id_2f476e4b_fk_django_co` FOREIGN KEY (`content_type_id`) REFERENCES `django_content_type` (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=[Redacted by tbls] DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci

Columns

NameTypeDefaultNullableExtra DefinitionChildrenParentsComment
idintfalseauto_incrementauth_group_permissions auth_user_user_permissions
namevarchar(255)false
content_type_idintfalsedjango_content_type
codenamevarchar(100)false

Constraints

NameTypeDefinition
auth_permission_content_type_id_2f476e4b_fk_django_coFOREIGN KEYFOREIGN KEY (content_type_id) REFERENCES django_content_type (id)
auth_permission_content_type_id_codename_01ab375a_uniqUNIQUEUNIQUE KEY auth_permission_content_type_id_codename_01ab375a_uniq (content_type_id, codename)
PRIMARYPRIMARY KEYPRIMARY KEY (id)

Indexes

NameDefinition
PRIMARYPRIMARY KEY (id) USING BTREE
auth_permission_content_type_id_codename_01ab375a_uniqUNIQUE KEY auth_permission_content_type_id_codename_01ab375a_uniq (content_type_id, codename) USING BTREE

Relations

er


Generated by tbls