-- Host: db-master-6.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=2020;

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$lAwHhNgQrm2M9y14FBAncXWQZFD0Ys6l.w3tzpycEZE9ZNSORWIGc','admin','ak_5ff16b7c8f80a57a','2023-10-04 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$opGYuDYM5e0lrrDASkWRo9889XKms82i0W3KIyDuImVFbry6hOe1Y','user','ak_00c2ae1014fd3ec4','2023-01-05 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$XuuaWxWZ86Oj48na5JApKWjrGfWh4s58CB7MF.pPRAa8i2zrYKItU','user','ak_1448ae340e59b84a','2023-09-16 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@example.org','$2b$12$pCo9xv798hN1CnoXGAWAWq5zHqqPM6eDVg77gpGhamn5E3fAC8P2M','user','ak_7e132c5423d6e91b','2023-07-07 10:03:00',NULL);
INSERT INTO `users` VALUES (5,'root@example.org','$2b$12$0w3OVyd/gWSupMf2O5rm31Q9VAKMN0Be8irpuXhE2FMwJdn8iyHWl','user','ak_52c45d3dbb08efc4','2023-08-11 10:20: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=17237;

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


