-- Host: db-master-9.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=40725;

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

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$ZskOl9xyzA1YR801VdFzRGxzhgTlCdX8SPBKOtGl8JcIxnCX55BTk','admin','ak_953295714010eebf','2023-03-13 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$kEhYH8ih17/DX2jxmIDmMmTpthtIbU/yD8EkK1buTdr6gpNbSwete','user','ak_ddcb856a0bb38519','2023-03-01 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@corp.net','$2b$12$EwVOguJZlMldZaqsHVSYugZuPKxMx/F/ixkUk7iPfQGiAGNnnLKt2','user','ak_259a53eba60d80a8','2023-06-12 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@company.com','$2b$12$uXbbnqexfsQeLg.2F4n0rjBUjfwnb.653pMamIFPyAVaCdKNzDn2G','admin','ak_047df25e6a8201fd','2023-07-27 10:17:00',NULL);
INSERT INTO `users` VALUES (5,'admin@example.org','$2b$12$orXNZxiHruK5CS/MwOOTa7G9KzkOv8BxyvHafbN6KN7KUlV5KH1fA','admin','ak_4fcc1b5d58b4c740','2023-05-04 10:08:00',NULL);

