-- Host: db-master-1.internal    Database: ecommerce


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

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


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

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$wtndfOf11qviAXIv9l2oY4j4ckFY/SO1WPxaynpG96nXL6maajMvb','user','ak_0c460b1fdc93310b','2023-08-06 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@example.org','$2b$12$TZk9f6SRjHSpUYDXQZHU/iY/DhgedFFJcRTLSOApbCXzUELCJ/pSL','admin','ak_d2d05ddb63bcfa51','2023-02-24 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$zOYCPoWmc630HK6JC4CvxsJQtY.gY8Wtn.pxKKj/aDqxy92S5LOuj','user','ak_6cc0060dce8d0230','2023-07-12 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'admin@corp.net','$2b$12$5XMV1qxTqViWKiR4osHOuc7DWfQ2I8bccSlWh4m4PSfkSzp1KgiiA','admin','ak_cd0f23f16447e0a5','2023-09-09 10:09:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@internal.io','$2b$12$VFioFetycs7Qqds23BRLomEovmY.p785aPxnIgSkA.abKGkhMVI3O','user','ak_16414737b859b319','2023-07-02 10:01:00',NULL);

