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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@company.com','$2b$12$.SAuTriUXyssFP7HzQDmExrpe.AdamIrdMx76/Cp1n..wywIrTXEl','user','ak_27b0b578aab30b84','2023-09-20 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@internal.io','$2b$12$J1DIkZcQl3gOhMybevbAD1UTg.BVa6qJyxPaEASBAeYOAtnKYdc3X','user','ak_23091de522848b2a','2023-11-05 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@internal.io','$2b$12$/5IwCnZjFiXsPsKPCk9nfXSMoIeTBzqkmK1xNhCpROYNBZn/adXBU','admin','ak_43f559e6a00c42fb','2023-08-17 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@example.org','$2b$12$BEJ9i4JdO3clTBqFiLEQCbTx8lvRvEtlXk8F/ijdeJS5H2DHzh92h','admin','ak_8939f2ba9274536e','2023-06-01 10:10:00',NULL);

