-- Host: db-master-3.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=34761;

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

INSERT INTO `users` VALUES (1,'jane.smith@corp.net','$2b$12$3m4U2ASt6EIPUjSNFXJR7lVbKJPywozHC96M7glkdgwNynPiJOdg7','user','ak_4c8054f28c0e0525','2023-01-14 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@internal.io','$2b$12$NMFtXEJ9FELGH5PzW2aV0w.JCjhAJ3mQzaOcK4u3NYfuEJoqOarGP','user','ak_8ebf555020dd6a5a','2023-08-18 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@internal.io','$2b$12$f1h.OVLqZCEQop6q6L/mP2P2xYwcO2CVvD.n/4rQgaZCXoTmHCbKK','user','ak_d8323ae65bbf475a','2023-02-18 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@internal.io','$2b$12$saV2wZzu5hKNlheG08bEBtFvU2R7rfYjVbVUSusdGvZNn5mKj4ON5','admin','ak_7bebe79500a02f30','2023-11-01 10:09:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@corp.net','$2b$12$ZcHTuyRf/vl5RQSkhIEFkxTd.hh/ysFcXOpJHvdx.quJCgP/tkvp8','user','ak_77b170bcaa928f22','2023-11-05 10:10:00',NULL);

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

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


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

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


