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

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

INSERT INTO `users` VALUES (1,'root@company.com','$2b$12$If3Cu.GEt9yUSVQUgUMzRFP.nOh4j/j4lcx9Gcu1Qo5EcEAGqGQsi','admin','ak_4fe9a7088ab1b8c5','2023-08-21 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@example.org','$2b$12$Tk6SDkosFwB/bGQ0c/KRLSaaNxGurO.8l.8PICMvRWg4axUjwKMSW','user','ak_f212371e9bbcc7ee','2023-05-17 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@internal.io','$2b$12$GbbUFkF6iiV9E3Ne3cAmdZ6IPf.CEobKwOvDyj3Stv2Nn/8z9Zj18','user','ak_16d4b1149629b5df','2023-10-05 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@corp.net','$2b$12$XBQDQBVH.Nug9.9AvfjLc6spbzlA41h6NjAPDkwtr34qI2XUQY8mu','user','ak_eb569d2e5aafde64','2023-10-27 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=38402;

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


