-- Host: db-master-8.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=27617;

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$6Xf0wVqWKVg.Ig9StDH0xQfQQ2g6qmg.Q1c620V1CPz5vDOQ6IXYp','admin','ak_b71d3affa9a6cc36','2023-04-12 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@corp.net','$2b$12$WgHFUxXUZtFazRpVtPTYNFiQRZJY2M.lME9d3uY6m91xJ6Bo78ftQ','admin','ak_fd8b4a9fff3dcbc8','2023-04-28 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$y5/bSpZdGQukSZ8CHnxqcx.ivHy9XHM9jtqxdcElpQ8Xa4/9jdVc7','user','ak_23fc2b405f7425d2','2023-03-05 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@company.com','$2b$12$WsuRBbnejFvGmR6fXHp0N6nnBqexEzuWg3G59bIh6TYylG9hHE1II','admin','ak_babdc8c50495fe17','2023-02-12 10:23: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=24626;

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


