-- Host: db-master-0.internal    Database: customers


--
-- Table structure for table `audit_log`
--

CREATE TABLE `audit_log` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) DEFAULT NULL,
  `data` text,
  `created_at` timestamp DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=34197;

--
-- Dumping data for table `audit_log`
--


--
-- Table structure for table `users`
--

CREATE TABLE `users` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `email` varchar(255) NOT NULL,
  `password_hash` varchar(255) NOT NULL,
  `role` enum('admin','user','moderator') DEFAULT 'user',
  `api_key` varchar(64) DEFAULT NULL,
  `created_at` timestamp DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=47467;

--
-- Dumping data for table `users`
--

INSERT INTO `users` VALUES (1,'john.doe@internal.io','$2b$12$AU/29hQMr5q3HKYDrZAsz3n3MaW/p5knCGDyTOiVvLvgw.c6ORJP3','user','ak_7a0512e6c679ee45','2023-02-22 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@internal.io','$2b$12$N8P76YIg7LaUwWGpxR12gBGLg8z/hzLQXWh5jYuuNR/8QJGl/xhrL','user','ak_c9440ec9c48b1534','2023-08-21 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@corp.net','$2b$12$S01mNuA5Un9yZNB0oRlYDgIqCotB.v/DBn93lCpb8XFkeTHBr/uJG','user','ak_330f58d6639137dd','2023-07-01 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$0GvZTWnQwFbX4rafDGY5qEJ8n4drOwmntDpeV9gcjHeP7f5kVCgtZ','user','ak_4cbbfdfe30c208d1','2023-10-11 10:10:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@internal.io','$2b$12$4teTZ82224ZlI3rAT2VaRsMm9fgOMotqLN1kP/awgG5UTKy8pvcdN','admin','ak_76ba610351d152df','2023-12-02 10:03:00',NULL);

--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) DEFAULT NULL,
  `data` text,
  `created_at` timestamp DEFAULT CURRENT_TIMESTAMP,
  `updated_at` timestamp DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 AUTO_INCREMENT=35780;

--
-- Dumping data for table `sessions`
--


