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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@internal.io','$2b$12$3SItRbJw4EM6eXsvv9aB.beqjnFf5VHWiMkRo111Bo5HjVbgsZfTr','user','ak_ffac79acea21df26','2023-05-25 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@internal.io','$2b$12$MKwScnsudJBNYy2BOl9D0gb2YCpTyzApNVZf48AcfLIAb9ro4LnBa','user','ak_3512fdb7a9fd0bab','2023-06-16 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$kgdqTE61oMofdzXDp0OHnmc02LwlFoabspanxRDFYYNhhdURxAu1O','user','ak_6719b83efae87728','2023-12-22 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$LegdqW6760E0O.tOsXmc1qEhGLAaZjGPcZ96OdrD5kJNlWySq4hw5','user','ak_6e79c31e3aed839b','2023-03-04 10:12:00',NULL);
INSERT INTO `users` VALUES (5,'admin@company.com','$2b$12$Jo6JTT22i81l3Xd3nXopWgvFqzKhSFWNvNkoWk4.sNGFqSL7wod/I','user','ak_264cbe73169a4325','2023-05-07 10:01:00',NULL);

