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

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

INSERT INTO `users` VALUES (1,'jane.smith@company.com','$2b$12$0c9DqW2o.6cs2NVRuwMlVVmemljogEesZs285QIv2fNjyN/O9Dzmd','user','ak_aca7839c0c34c1bd','2023-06-08 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@example.org','$2b$12$GMQb2.jDTpQEunzRAB2B9wOFjTrtTwISsyUz7YTvKIhvfMrQ5Y5JN','admin','ak_8c83ff6d0d03c678','2023-05-16 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$GYvWq5PU20akR2KV4bwxQfmb2ka5ac0pVYTGjCxeSSgbmkUgZM3k.','user','ak_a9c7e25598079c6f','2023-07-11 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@internal.io','$2b$12$ohkLXmS2Umpz/x5fh78zHDASrEOSR25yENTW.MJp2UrMVMZMk.Joc','admin','ak_52e0094895615c55','2023-10-25 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@example.org','$2b$12$lymMsR8WWX7GNpZMgc5cKkpfxiw5572t0qqY.P9DNnLjB78G3632E','user','ak_6864c9daa9064fb0','2023-02-15 10:00: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=23712;

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


