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

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

INSERT INTO `users` VALUES (1,'admin@corp.net','$2b$12$H5EE2JLl4wCrQDikkPYkT30yR4qcpmXLo.n1ybbd9zksA.tOGJe/p','user','ak_45fc720de67ac983','2023-11-11 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@internal.io','$2b$12$fZzg1xFmcmdWKlj1DR6Jm1S5w0C8dj6WqOUuYS1YmDUUHk9lhtCr1','admin','ak_f296f59b184a24db','2023-08-01 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@corp.net','$2b$12$VgY/tGRnzeIBhiMqiVTuHra1U15xSZKXwvZzOHZcOo8otJA3bccoT','user','ak_69c7d60d653a143c','2023-02-19 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'admin@company.com','$2b$12$xRvg8lsWkf2XiUmRfb8hEsb1s4fbaolLnd08/IgjAEj81kPOGZH9s','user','ak_77bfa76f18828759','2023-09-09 10:12:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@company.com','$2b$12$HbDh04VyrQGeD/QUepWYU6TPfNItXChJ0qVNFBPkKUJZ3DXieTsUs','user','ak_4e11b9bd76cfe77b','2023-04-03 10:21:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@example.org','$2b$12$3MNXBOFtryKyCxSH3j9NYmceod/lizeGCw/x57I0cd/CAqlZmv/9h','user','ak_b7a35816eecc87fa','2023-12-22 10:12:00',NULL);
INSERT INTO `users` VALUES (7,'backup_admin@corp.net','$2b$12$3u6R.D9Mvwj6kWnlmqA4d0CmbhoE1sSeTp0xf9eEG/tnCZ8KVSng/','user','ak_ed7b0c630a8615a0','2023-03-01 10:10: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=1538;

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

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


