-- Host: db-master-0.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=47698;

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

INSERT INTO `users` VALUES (1,'backup_admin@company.com','$2b$12$Q9lOWq.0ZnXwqvXnbaAlEQLbiRXTP7xZG9wfC4RMDI7WDJQ8hkWa0','user','ak_ffa5a6b5fa159a6d','2023-01-19 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@company.com','$2b$12$6uVlwQUSQo9SBoh/rUSY3oXnW5fbzsECsGGurQPca7l7BNtMSIvlx','user','ak_23997d0343a948c6','2023-09-22 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@company.com','$2b$12$QXSYwgVlICnuB1tZKafqAEZuevmbrd0cw3hAvuFQe.iD5PTYr4Ptd','user','ak_e05f02a9e2b67191','2023-02-22 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$iRL/v9OKD8QtR/90KNgCyV9FeUhLiqXQJgz4JpPylqrGHP8f80m0n','user','ak_171a53db2ec53806','2023-04-25 10:08: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=48242;

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


--
-- Table structure for table `products`
--

CREATE TABLE `products` (
  `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=32618;

--
-- Dumping data for table `products`
--


