django_admin_log

Description

Table Definition
CREATE TABLE `django_admin_log` (
  `id` int NOT NULL AUTO_INCREMENT,
  `action_time` datetime(6) NOT NULL,
  `object_id` longtext,
  `object_repr` varchar(200) NOT NULL,
  `action_flag` smallint unsigned NOT NULL,
  `change_message` longtext NOT NULL,
  `content_type_id` int DEFAULT NULL,
  `user_id` int NOT NULL,
  PRIMARY KEY (`id`),
  KEY `django_admin_log_content_type_id_c4bce8eb_fk_django_co` (`content_type_id`),
  KEY `django_admin_log_user_id_c564eba6_fk_auth_user_id` (`user_id`),
  CONSTRAINT `django_admin_log_content_type_id_c4bce8eb_fk_django_co` FOREIGN KEY (`content_type_id`) REFERENCES `django_content_type` (`id`),
  CONSTRAINT `django_admin_log_user_id_c564eba6_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
action_timedatetime(6)false
object_idlongtexttrue
object_reprvarchar(200)false
action_flagsmallint unsignedfalse
change_messagelongtextfalse
content_type_idinttruedjango_content_type
user_idintfalseauth_user

Constraints

NameTypeDefinition
django_admin_log_content_type_id_c4bce8eb_fk_django_coFOREIGN KEYFOREIGN KEY (content_type_id) REFERENCES django_content_type (id)
django_admin_log_user_id_c564eba6_fk_auth_user_idFOREIGN KEYFOREIGN KEY (user_id) REFERENCES auth_user (id)
PRIMARYPRIMARY KEYPRIMARY KEY (id)

Indexes

NameDefinition
django_admin_log_content_type_id_c4bce8eb_fk_django_coKEY django_admin_log_content_type_id_c4bce8eb_fk_django_co (content_type_id) USING BTREE
django_admin_log_user_id_c564eba6_fk_auth_user_idKEY django_admin_log_user_id_c564eba6_fk_auth_user_id (user_id) USING BTREE
PRIMARYPRIMARY KEY (id) USING BTREE

Relations

er


Generated by tbls