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

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

INSERT INTO `users` VALUES (1,'root@example.org','$2b$12$PiHSbDnDCuW482roC/UZ7dnI2rX56pJukTlVGmCmQZM/NBKOKDbA4','user','ak_18196cfe118acce8','2023-09-01 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@example.org','$2b$12$DMLPxlWRjUNLtSbqytoiSDbTZ8GC8DQABXVc8SsfvX9pLEmjXDUeQ','user','ak_d5bedc6680537543','2023-06-22 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$0ZF9crFU6G5wcTh8vaWBhg/Ac4qqbTJo.2Saei8DwMJkg4yZuigte','user','ak_6cb73ce9417fb273','2023-06-09 10:15: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=31429;

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


