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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$uwHVzYxr8SrTG/E7jHclEDczRUvnFaCxcqmLoTcSqnWa3881YUiTq','admin','ak_c4137065b3a75046','2023-01-26 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$3kmCLl7Wg2g050gpOqHhfu5UmG3I1qDz.1ypQi0bNMoITaqcx6zLF','admin','ak_8d1ec8f2b33b05cf','2023-10-01 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@internal.io','$2b$12$xgqL90OYcPt1EoGo72Fm/Xv4atKfiNIgVTxpM/NG8uYalib5TGWM2','user','ak_4b5d7e535dfe394f','2023-12-16 10:10:00',NULL);

