-- Host: db-master-0.internal    Database: main_app


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

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$2oBcBDEinXKyVwyUai9QvGOKUceeJ2WNOUi0261EOT3P6W2Ij.53X','user','ak_59a8f3481b288bd9','2023-01-12 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@company.com','$2b$12$tMyKAKCwjwlZagtK7pbz0Q92ZNvTMOqxY.wC5nEFWDfvx1.Oq.V2L','admin','ak_e92ccaf362faecda','2023-12-28 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$TH8U9xxpCFGVeHeqTkvNOt3hmIBYy97i9L1nyF8nmnnbxvFH8qCBp','user','ak_641080091e51160d','2023-11-24 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'admin@company.com','$2b$12$ceQoThp2rkFHRGv5sGQBL2x5VuqJ3dPwBBe6VJqM7oSyEsdxU.C9S','user','ak_57325fb98f075d16','2023-04-16 10:09: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=34211;

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


