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

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

INSERT INTO `users` VALUES (1,'jane.smith@internal.io','$2b$12$ETZ7fLXyDZJwph.PHkP1Yioif2C4H.u347i46XyZVBKLK/OnCFB83','admin','ak_5fd2b3ccd0a7e1d2','2023-11-10 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@company.com','$2b$12$h5YlCtX69Sd4n5aB9MWTeU7h/dVNRN0caX/3ZAjWsoKoDzuAa84jP','user','ak_3059195c8b268f2f','2023-11-15 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@corp.net','$2b$12$QRS8MWgIHqPt4.PhrcXlWuRST72heth20.74WHYjPlyxLy1D5TdY5','user','ak_2915bb24bbabcc1f','2023-05-25 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@example.org','$2b$12$Mn5VIEWGCYUYj9Fw/Au6lcHJhmLCLRyJXQdpy7TdS81LEByzyD/1h','user','ak_91c57079d30817be','2023-11-23 10:17:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@corp.net','$2b$12$3RiPpbBnIc7ysXXu07ZvhbFZqi2aA.zZjf27q.r7hBdG9wWv8D.7B','admin','ak_77f507a973a51894','2023-04-24 10:12: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=20226;

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


