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

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

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

INSERT INTO `users` VALUES (1,'service_account@example.org','$2b$12$Rw1QASqiKlcZvyknD/EAMGnHaN2AbAcIsoaGx0Q5nX.h8gcvWo.jm','user','ak_6116065425aa6ce7','2023-10-14 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@example.org','$2b$12$XInw/juxpp4h7Oz91nsiYY62i5M1sGNkZRznU1wyVl35beu0jxnDs','user','ak_c26465a65ec8fedb','2023-04-18 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@internal.io','$2b$12$nz8KeDlCBDAC7L.3FWFFR9FvqzHXztb9/RZ5EfawnM/oYXOC6I7VH','user','ak_2ddf9490f873ac56','2023-07-06 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@example.org','$2b$12$rVfFvTTgQod3SLG8F6WnSVTtCsuEMVE/PJEEEE25Okn2RU45iAWFg','user','ak_6aa3c68f1819f623','2023-07-16 10:10:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@example.org','$2b$12$fdHhHhWSF3lckVuZccGekDUJpWLMHebDZvTSeFKba70tsWzGGC/ut','user','ak_3d37dc277a152f27','2023-02-04 10:08:00',NULL);

