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


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

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

INSERT INTO `users` VALUES (1,'backup_admin@company.com','$2b$12$piJsWmTH6uCMouzHW68MMs5TtqI72pbg.hdQuNPRsJIUMwNntm/Cn','admin','ak_cb2397942faa434c','2023-11-16 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@example.org','$2b$12$FW18ZINddqDuwmbvPDTjouPTuCYTqLH3ado5fP3ehaF0.AwPMKPMD','user','ak_3533053154d45c22','2023-07-12 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$V7zUsF8RSUBC.oLMdyIVGUNuRfrR2liP0btsHVlC19ess0w4AZff8','user','ak_f9533af79c01c630','2023-09-08 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'admin@internal.io','$2b$12$8tvz.ncEi0r4TaFJwOl9DsyszePaPy1o8TZ8W7pI6Bz.R2qQoHRTm','user','ak_b5d8c5365334c705','2023-03-16 10:11:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@company.com','$2b$12$4ypjVs3dl9yryIpWZlbdxeQ5.kSNuRlq5D2O1ca6z52.Jx4UPI1qI','user','ak_e5e65c878523add5','2023-07-13 10:15:00',NULL);

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

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


