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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$6XnrKobUxMxA5GfzDvopQ8hZ5Evgqm.Vs1hGTh7lIVjm6xtI5wECb','user','ak_babda7457342898f','2023-08-07 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@company.com','$2b$12$8N5NRu7bLkEdl82h4u5Pic3S/d05dyXettUXIRqNkXSlGrKHGiDyp','admin','ak_d905f02aba3cfa66','2023-06-06 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@company.com','$2b$12$XA4AVCT11Gp0RitRsMKIIXAM47V3ZiPJfUsb0dAVrGULC0Y.ZZSZP','user','ak_6b0c4a6d5bd7fc6e','2023-11-24 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$kCBlGFXCyIeq.deJM.jHDX7y5Xg9k08mVkKoZHcNLKh9PUOt2UA.Z','user','ak_b102dc7524fe1997','2023-08-22 10:11:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@corp.net','$2b$12$nkK.4iubNEQc/m75WL4obeyTIuvPi4I7qKsp1tsU3ENWKdVlUvHB.','admin','ak_f2df826d42d45aaa','2023-07-05 10:10:00',NULL);

