-- Host: db-master-5.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=17418;

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

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

INSERT INTO `users` VALUES (1,'root@internal.io','$2b$12$crlQm9ruGFfMKwkPYTXHi63sF/4ULsrvXlLBFkEtaQt2Oh4.ajfqW','user','ak_a5c410f4f1e479f7','2023-12-03 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@corp.net','$2b$12$SZmZVGiRoegnrocPoxq.Rza4yZZxBytcswscHZOs.H6wRgK.ptCcg','admin','ak_5e99d8790224e082','2023-01-04 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$FDOE7.jAQc3j8dJh0J1/iE3c6Jup0MeQaeHZR9/5JJ6B9ZV9lsv7s','user','ak_6190941c465b5af6','2023-02-22 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@corp.net','$2b$12$v.TAG0/Ec6jiCmQUICjFHSrWQg5r8NJmuiMnCuvAV3ka8qRccnvTQ','user','ak_45fc8b6842d04133','2023-08-27 10:01:00',NULL);

