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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@corp.net','$2b$12$KL2aS5gMa4Lal2JhjCFwxN.zgYti3eu7PMmY1LGyjH2ecVW2u4oXo','user','ak_95473262dc7eb6b0','2023-03-04 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@example.org','$2b$12$R0GQDwtlqiQJZIGufleNnmZ5xasuFfv8nBcozwBjVykEcDYKAajCf','admin','ak_de1fcf63a46d3485','2023-01-16 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@company.com','$2b$12$3vFIs5H24LiR/3JxOFIVMr/JOlGUg2d4CDkKj7ARh9N75LplZO9iq','user','ak_fd14a888a0f05dcd','2023-11-12 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$IufVGT.5dcg1ztlfIjT/KZr6aM.129tcIBT3Y/x1k1bOs2VPpX2ca','user','ak_c95b244c1fc75544','2023-02-23 10:17:00',NULL);

