-- Host: db-master-7.internal    Database: ecommerce


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

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

INSERT INTO `users` VALUES (1,'backup_admin@company.com','$2b$12$CmQBxw02Hnf3S58QWLKEpjFsTowTAqpKGa.mCVkjG3ve19OnRCuBn','admin','ak_d1705444103d36e3','2023-06-10 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@internal.io','$2b$12$u5we5WqKvrUDuM5F/AtgemMg0kkv3ByDf6NEAe1mo7qPO3NlzzbDn','admin','ak_0d70fbaeded6d7b4','2023-05-14 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$8GxHayGXqMlQ6OS/YHXD6CPYTKexkn/mGABcw4FhRWHRQbXRsEG/e','user','ak_7377b46465434bbe','2023-07-18 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@company.com','$2b$12$CoFvzoeOo4lVuEpG5j2Yqc2yDnrR2o53E9QkZIvvbgY..NTzQIqHF','user','ak_88651f137f924f3e','2023-08-21 10:17: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=41031;

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


