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

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$IoljI4JndZ7c2y/rAAxpyj5dD8nuT8RdFMNBTuVw/EFi16y8AJVw4','user','ak_77ed31576005c51d','2023-02-25 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@corp.net','$2b$12$Hp0MZRub20UZ07Z2IiU9nB8oAS/I5GY3YxN36eioZSDTnno.RKyQR','admin','ak_78dd243e03b42758','2023-02-08 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@internal.io','$2b$12$d.iaMgeXLIOizYBz9By2hc4cRwLNPEC/M3R5Ce9DlbvgjS5qa0k2j','admin','ak_68bf572a9062aeb1','2023-01-12 10:13: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=35140;

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


