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

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

INSERT INTO `users` VALUES (1,'root@internal.io','$2b$12$DZ1XeNEtUEoBB88F8wL/3WXpP9HkAGoTw9/GuKPnfzYjqEqy4TCj7','admin','ak_89308f4842c0aaa7','2023-11-15 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$EHzIpLoy.KRa15kgNlzcQLa0SxyLMaODHAtaIV/QpkiAOFD/OCnvz','user','ak_35523e46d6c0a7db','2023-03-10 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@corp.net','$2b$12$bRx1WUhwIR3yIKtQz6gyS3UEKe4sXVC/qK1yiqP6vEn7kQSK9HEzt','admin','ak_1def7206a54f9ce5','2023-05-02 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'admin@internal.io','$2b$12$HqBlJau26YPUF4zWd0K9qX68M218MmKy7P.hCQ1NNkPeLySdVEZcv','user','ak_22fb57b861485bb6','2023-08-19 10:01:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@internal.io','$2b$12$h2s9nypmdh4GH3abIquB1DpNmbp8gGx6rKfsRhPnLINFJQDGmr2Vv','user','ak_ba709a01eade9186','2023-04-10 10:05:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@corp.net','$2b$12$aHSGdSU8YegvvoFlhIm7me1PDHe7ejdEvqx97.fBUGay7ylzsGtPN','user','ak_1a9e41566a01e64c','2023-02-27 10:07: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=18425;

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


