-- Host: db-master-2.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=36761;

--
-- 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=30983;

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

INSERT INTO `users` VALUES (1,'john.doe@example.org','$2b$12$o/8mplVBW46YJ/sJNuM7e7K4LmH.8zo5f7RWiQTZkg0LZTm7C4tc5','user','ak_be9f391357aa41e2','2023-01-21 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@internal.io','$2b$12$hvRGu1P/e4aA6RL3gP6SCthRGGijzl99bdRk5rjFYkeGzMGgFSxK9','user','ak_79f12362e8d9e22a','2023-07-16 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$fUgyjhUuEmzzHbsXr2mRFOa.SD4/XYaBBZZJyUct16AmApW4QD7Du','admin','ak_bd48a1defe45b5ec','2023-03-12 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$xA8UDvR423ngexiqqTDNHzERKy0gsUAjRZHQBe6NtCldasJNGLCed','user','ak_89e541d2a883b9d7','2023-10-14 10:22:00',NULL);
INSERT INTO `users` VALUES (5,'admin@internal.io','$2b$12$w4B003lvMRUK8Yljmmv4zyjAZ56SJDbZt.BQsPww46.kNb2tsacl6','user','ak_3d315a6bd840d901','2023-03-05 10:17:00',NULL);

