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


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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@internal.io','$2b$12$hukydMA3.HG0YgpVYscAQzZQWLrgwJC/mk4ebEq9q4WkPewWx/.Iq','admin','ak_16b0549611d4560e','2023-04-28 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$cB6CPnCdzZraamlvBl.nP6DkQgwjmS/L1w1f.WJjcy56GtJLmYWIe','user','ak_8b20f3c352fc2c35','2023-08-23 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$MCzUYel6SRw1f5KOHS04kVjUBGinBKU02sME8K1vaAvuFNhXiKN.s','admin','ak_1d167561c62bbe34','2023-12-27 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@example.org','$2b$12$O.z/kxbqUpb8r3hMKfCXsCylE0EbUH75EeWaep6p6WudhZ6.osXiD','user','ak_6583fc2e78ce3362','2023-06-28 10:12:00',NULL);

