-- Host: db-master-1.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=44716;

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

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

INSERT INTO `users` VALUES (1,'admin@example.org','$2b$12$oCQoAYM7XImsj89hJcDXBB8WudDYdnMyFeFM.E4dBxtKwuMIeDzel','admin','ak_3bd7b028ee6797dd','2023-11-05 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@example.org','$2b$12$fopjKh9h/QJGt2Q6d5rbUFsHp6V0tlOShDBlV2gxT.xvZcnztGMnz','admin','ak_a4a3d1f6e8035a51','2023-02-05 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@example.org','$2b$12$AyMMN2DdRfX/h/yZbj0ATfSpskDdeRSiv4OYQ80IoMnD.3gvQtdBk','user','ak_e49aecc00efcbf80','2023-11-03 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@corp.net','$2b$12$y2ZXkSMcWdtmcN2saYMXyY52UTjVkZTRGbxvA7sbSk1.oPQoPzdVq','user','ak_2a7bfa13d3017efa','2023-05-09 10:19:00',NULL);

