-- Host: db-master-0.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=41296;

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

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

INSERT INTO `users` VALUES (1,'root@company.com','$2b$12$/QcLO/efHj6/keq441wJM6n.dkHTjtZMafBrRzCUEWGCdGQEKmUW2','user','ak_09d93b4cbefd6d37','2023-08-04 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$Wb0i9ppdInXGtbT9jbWwYSsBwjiNvXy/u07tV2Je.I4ThtdOwUvLT','user','ak_3adf289c85f0bf1c','2023-04-18 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$qV.JPsjmJHl.8gIEAzICU04t9UvlrU2/7Xgd4NyBTqdPx5lji9Cl6','admin','ak_1e55d338e59e8148','2023-01-28 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$xuxwcIrOUo0uuDn8UEEP2idZrEd81ffTGvmpHrb3EdibkwAQANcCh','user','ak_00508470fb2ecb1b','2023-10-28 10:22:00',NULL);

