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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@company.com','$2b$12$ikbxtTpjIiTwtNF4QQ/nWASZeJqCbyo00WInHLgE6nkftekTIgH.s','user','ak_d87b13e1051d7d98','2023-09-13 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@internal.io','$2b$12$KjQarub.Yas5LU3PtqGWbA3TSUqyrz5v/afVuDamA/q6YoslcsAJC','user','ak_540266e6950d578c','2023-07-08 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$HxfOA2l9pt/8NGwq40EzcL6P3Gd11sLPTG.qbnJjoSx6WELjfvBFK','admin','ak_e78fc11bf8902d0e','2023-04-18 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@example.org','$2b$12$vo5QLXQFxHsYKtJ898pGzA/f1y7UCMuarMPkkw0Vsg3cRhTEF1r4O','admin','ak_fad5491b320ab469','2023-05-14 10:19:00',NULL);

