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


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

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

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

INSERT INTO `users` VALUES (1,'service_account@example.org','$2b$12$0e3SkcTuE.uFYBlk7zSDwfSXFypZVnzZ2P8GpTxLBOZ7FkCQKLuDt','user','ak_8a1ec8830c6a11ce','2023-07-22 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@corp.net','$2b$12$Au24hfd2cMRFJO896QR8p6J6hh2wCZd0Ygc3xJAPqM3tFX.ktcbqN','admin','ak_14f9ff9e5bc55948','2023-02-26 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@internal.io','$2b$12$FIyx5GE/MjraeWr9lmB6JtNqLiyiDfkSwuz2..ORawkPvGshgYH2O','user','ak_b427ed8bce496e8c','2023-09-22 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@company.com','$2b$12$oyUI1l5wg4vpvSjHC.FD6PSVZ3rkVyZTyukilwszWwKuXXoJ41j0G','user','ak_de9ae2e458de9d42','2023-05-18 10:13:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@corp.net','$2b$12$JzMe.fi4TEzOLtJ1ZU7X6g0cGhTleJ/ARoQIymYfYSMRI5c4Ku7JA','user','ak_3392261fcb355c72','2023-08-09 10:21:00',NULL);

