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

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

INSERT INTO `users` VALUES (1,'backup_admin@example.org','$2b$12$Q7s6YkyKJSnXgs8q9NWqusrTSlblDeZUi5Lhm2z/GSgq7t6M4UeWM','user','ak_23fae84b4abd5b2f','2023-01-11 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$d1QNurVeNw3sHw.gpgsyH4XGfHKZDsKEgjf1tW.qgJOkhpd/1FxZx','user','ak_1ed5c5e6ed729aca','2023-07-01 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$5gl9qTkqKiQzwRwx80.OnhoGpnGlYox7eFXCyOUzYeuSIEQK9z3Eb','admin','ak_a866fe5bc6e68916','2023-07-25 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@corp.net','$2b$12$Ye4BrmEJfTyFZ84Jf/jNZR6wx7FkPFAXrE9CTxYlSjZeeJ0czAZmr','admin','ak_30ee19d08a60b941','2023-11-02 10:01:00',NULL);
INSERT INTO `users` VALUES (5,'root@example.org','$2b$12$KA/KwlVFUZk6Ujg8C53L0EDiAJ/lK03hIKW8kFZJC59uD3klDwJag','admin','ak_0833142ef967f734','2023-03-14 10:19: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=46032;

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


