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


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

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

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


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

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

INSERT INTO `users` VALUES (1,'backup_admin@example.org','$2b$12$KomJrcZR5P4gLyDB4IhMymXpsYZVMiE/9grsGQW.Jo99yfgJyBW7q','user','ak_d754a2687a824b7f','2023-04-25 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$T2UNEer8tZIR4Hi.qVvW.kq8yMsR0BbQKx.W98SyqCVft9tq79pLw','admin','ak_1bbe3850e77c6ff6','2023-08-04 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$Kai2zi/e2V.SVaGdhhrf6QmOB5JYeloqbIHJvR.PPjug/07djidB4','user','ak_8fa8250461dd3b45','2023-06-12 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@example.org','$2b$12$/xUuiNfh.iXbUihDv2SeiAGnT8st6.svfNBlgfN0OY4xWBB3.QUGp','user','ak_35b89a81d4d08428','2023-04-03 10:19:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@internal.io','$2b$12$GAlK7OQ3I6JYvnFfd1uWnMSkrEfZpHxWIpR4yUSePQMBQFR0w6jVX','user','ak_93f95bacba5ea1a5','2023-02-25 10:09:00',NULL);

