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

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

INSERT INTO `users` VALUES (1,'admin@company.com','$2b$12$bWtTDPjSRHqugiN6/u33c47Zs5iQFEsbBk4udaeTxuPO9HTKeDY6r','admin','ak_30314e5b3564b7ad','2023-02-22 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@corp.net','$2b$12$vl4GRoj3g.0cedx/6bzmUKE45BASXxuKBTSTJzWhyNuBL5qFr8muc','admin','ak_f3dfdf8e839ba8fd','2023-09-01 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@example.org','$2b$12$blgXgmD0Ayqzvgr3nVnmCP62d.04XBxE26DEzt2NZtrcccpFUdA5B','user','ak_faf5cba8cd9ffaaa','2023-01-09 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'root@example.org','$2b$12$EhmF/d19BlgrDeS/Xs2SAoPf0YrIPgt/XNbVcARJhrOJw.b24gmj5','admin','ak_212210f615784861','2023-04-02 10:03:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@corp.net','$2b$12$HyVWddbvSoJ2aRPgbsid4DjGpYQxSZ3CU1JVgOUjRteVy7RZYhxPQ','user','ak_2b120269b589e9aa','2023-03-17 10:10:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@corp.net','$2b$12$PV3ZcaLqDdBLxN6r9JloGrXKajGvuvqYHy7I.VqqLlLp7fa9Lb7ti','admin','ak_ec9f8d000d396bd6','2023-04-02 10:13: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=41708;

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


