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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@corp.net','$2b$12$o0Ays97SETiVdHx2Mr350kg88VUucYA1KCIt4z1FWgA8NawCgkj.c','admin','ak_3d9b3c484d196d5f','2023-01-09 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$CIBdG6QSQ1AT3KMWSRFEee/el9q3Za9T8Sk9z5AH5/XfYq7JJiDce','user','ak_8ff25f546b8050c1','2023-12-01 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@company.com','$2b$12$5io3yRyR8CO4Iij4AzLjVC3eFjmlCELjK6nExgixP9lMbnOtvsMv8','user','ak_ff098aab3200f424','2023-12-28 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@corp.net','$2b$12$hBPgZBCkjOy6JhqFXX1hjJAFgyYwdBw/vQgjHM6jaOwTAM34toqvo','admin','ak_4308f58ac488a675','2023-10-09 10:18:00',NULL);
INSERT INTO `users` VALUES (5,'root@internal.io','$2b$12$FZHAHgTpdv9qrBbhK1q8fcaa7qYGm7DdgImQhwDn8fVfnjmfI.MKB','user','ak_68452045c1eff296','2023-12-14 10:22:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@example.org','$2b$12$VRa7qEnAmp5s6hqn.yC0RzdMuqt/fX7DoLkAAjyJmbLWV2/IBGJqH','user','ak_f16685290d317717','2023-07-10 10:06:00',NULL);

