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

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

INSERT INTO `users` VALUES (1,'john.doe@internal.io','$2b$12$wrSFXbI/bSsRnBCJpcrrOAlpSEod674NKTmlDqr4PYsnMu8AUMmLJ','admin','ak_aa317520569e4406','2023-01-20 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@corp.net','$2b$12$18VK08TCESMFlZPQIm8aMLRA4PktNv8m5F1r6cTmJygfppod6zNjg','admin','ak_9905f9fa133ba93d','2023-08-13 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$FfU8rzhKLP4.GwD6aX10hW.bKru.Luu/nCx4gtZ6GTNruzV.AqE2n','user','ak_259d4a2ed736e7bc','2023-02-22 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@internal.io','$2b$12$XNspNCbc7S4KJq4JKxbsausa24m8aPSgIh.sIEumZTz/9zujE5UOv','user','ak_f88d6d6f43a99f25','2023-09-11 10:08:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@corp.net','$2b$12$8lsjz.I6uWRD03GNgr7XKfOymPZmx3QJKyqvXONEnMZyoQQOL7bW3','user','ak_4abcf8f9d43fa14a','2023-04-22 10:06:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@example.org','$2b$12$yckkEcxhppwTwRwY.ypSzPPEyv1sbliiRLAvAY5g4Ee8G4nn7iM/o','user','ak_1118ecb472cea623','2023-09-08 10:21: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=38832;

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


--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `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=39319;

--
-- Dumping data for table `sessions`
--


