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

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

INSERT INTO `users` VALUES (1,'root@internal.io','$2b$12$cJR128/fy1OzSZgIUxRXJdoTi4rY50zBewFEvrFMWkRprjXzjSZIK','user','ak_48496ceecede8548','2023-08-21 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$nLBMqPABGQMIW2Lg7OhUGOFwc4Peg9d2RlzSB69qAMksenjZL8a5.','user','ak_30c5eac31a9e881a','2023-10-02 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@corp.net','$2b$12$BKqtEaPWM8viAMbHTTj2Wr5KDPYUvVYI.GTb/dR2Z2Hzn6k/05Ldy','admin','ak_8c4831eb83a4435f','2023-07-04 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@corp.net','$2b$12$T7THvypAEZSOGnABRTaqtWWDaJQM0rJB10KIfTf4VfY6pjMC4XV3p','user','ak_cfe3719132647450','2023-12-05 10:00:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@example.org','$2b$12$dlcPV0UyIfL1LNYBpO0oUBqN/SSmnWqhAVwO2l78stfrd3P438wDx','user','ak_d8d4c72a3f9a9e1a','2023-03-14 10:21: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=2228;

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


