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

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

INSERT INTO `users` VALUES (1,'backup_admin@company.com','$2b$12$yeSqS6jJZtngAv3CliQQ4fwXq3y7ZtDKGhRi5WXIyXal0pTylELKT','admin','ak_c428eb862d945980','2023-04-16 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$gpUC.kctfWNzyhIFqMOa/3hZTBDKDK/hOP3XL0szlQY4Mm1T1SlsW','admin','ak_c2509f07afa162d5','2023-03-17 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@internal.io','$2b$12$D8.U8Puxgu/8CJ0hiBp2tsIS0.g6sKVTxSjuhZVyhHW5fSoV8J6uG','admin','ak_3615d0e09d03c4a2','2023-10-27 10:07: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=21753;

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


