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

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$hbV4Sbda9FdK/55wEAWE5NGrH8/8Zsn9g9gNWPKo4oCPg66gv6nBt','user','ak_6af5892e19e1be5f','2023-02-15 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@company.com','$2b$12$cwV5p.d4GjaqcUNPXVBFrFSEFeria.VPKP3/4d2cp6h.8pjPyv332','admin','ak_14f11838cb9f9d23','2023-06-02 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@company.com','$2b$12$A9v4zQNLycvR3bfxXjxqVcgCSL1IyqCSFkr0oR/58mEnYL3Ux5tte','admin','ak_fa463308fa4f064f','2023-05-17 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@company.com','$2b$12$zeCIXRM.LKLRQ44pCr9//f1R7Z5eMfi.vVgb54AuzYdVoRPG.pzL8','user','ak_4a4c2ee8fe0a2867','2023-06-01 10:12:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@company.com','$2b$12$edhprzPa4cPyoA5ewvygZugnlctrjPAIDZmZxEsgjBiE5YgpYdMMb','user','ak_db7afe2ac2441e28','2023-02-11 10:07:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@corp.net','$2b$12$RAmy8/GxFHxTm.eBqT5eWk/iN2LN0xj680tsiinMiOLX4QVsRQz83','admin','ak_8fe2291633c70423','2023-08-08 10:16: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=49394;

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


