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


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

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

INSERT INTO `users` VALUES (1,'john.doe@corp.net','$2b$12$rZd8PYsxotWi6hIUHWuP1tg/S2ci3Yh0oelQKiYtuoFDUvUDtGhio','admin','ak_0c7f0f9fb791283a','2023-08-06 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$dqY41.geqeCG3A7U/iUmkuFphP.jUImDe/H6hEcqcoD.N5uoWJ7CN','user','ak_99b2788863ec72ae','2023-06-12 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$YCwkHqqmBcY/7xY6HI4fwS/O0nw75t8UXoZJ/1lY7O.o7/AOdeYk6','admin','ak_3e801c541c0a85ea','2023-08-24 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$8wgAJD4dolQnIPf.PASSUbYn2rjLcdz.cr33S.QBIU1VI9THKGPdG','user','ak_c7710755ff194cc2','2023-10-20 10:02:00',NULL);
INSERT INTO `users` VALUES (5,'root@internal.io','$2b$12$nzQ.ILLtkZjzjbN8JI9c1vMJoS0LRds.HBM2nROaux7uVc9l0zVDS','user','ak_e20943775e757fd7','2023-08-18 10:07:00',NULL);
INSERT INTO `users` VALUES (6,'admin@corp.net','$2b$12$pxvfKY9wc0889dhfxGbFtWKmkKVoJxK.Yg3kfyiKDd48.zeQGyllw','admin','ak_6be7499a2a9ce9b5','2023-11-04 10:00:00',NULL);
INSERT INTO `users` VALUES (7,'admin@internal.io','$2b$12$T5i3C0oCQXSL1BEzvuzuqB6kehJUm1cg7bz8IfA977KVijPp9AoPN','user','ak_85457e807e75e6c4','2023-09-14 10:05:00',NULL);

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

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


