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

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

INSERT INTO `users` VALUES (1,'deploy_bot@internal.io','$2b$12$0nzxOh50MEkt2qoWABTSJhytmMbXaW9DFZ4MMq334bzYxgYDH5NL9','admin','ak_35e6961568c6be0c','2023-08-23 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@company.com','$2b$12$FUG3r1HM/p2d2nhPogvxdZJt5y4Nmcj1IxPt3SgdGo/vEVfGp/lrT','user','ak_07767009e994f50a','2023-11-12 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@company.com','$2b$12$76h1XhV3V7tM9Cq8dvFQRP0UILF4NWsYD5TWzmzajJ6knjzBKB9SM','admin','ak_eb296ebad23017a0','2023-04-28 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'admin@company.com','$2b$12$Bn6qvVKdVpwO1Lem8xArFQKS2FGHcDFiV5.yhGz6zBEqNa87MiXqC','user','ak_16884c69b38c65df','2023-01-25 10:05:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@company.com','$2b$12$5SCe/fBDbyxeGySTD.lugClCdvPcxqC2K0d7p7CXvN0./Nkxsyor4','admin','ak_94ef2a1efd485737','2023-09-09 10:16:00',NULL);
INSERT INTO `users` VALUES (6,'admin@company.com','$2b$12$S.//k5mbIsRg0n2Zf7/Y4NRNPG75B.VWtGjVeU0gvHpcmkH0h7hWp','user','ak_c0ab9988a2730015','2023-05-21 10:04:00',NULL);
INSERT INTO `users` VALUES (7,'root@company.com','$2b$12$W1P0MBl9TNxzixsk69Da/Js3uqk5qnWYP9Px0KJVbxmFC7LQSwhX3','user','ak_e9ce24c20ab4a21d','2023-10-07 10:04: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=35538;

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


