-- Host: db-master-5.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=9492;

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

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

INSERT INTO `users` VALUES (1,'dev_ops@example.org','$2b$12$7RgoReImcYnrlVtidicxjZYrdW31./L.5nirNAt6pWT2rStnMXKIX','user','ak_6dc2ab061e8e55d2','2023-06-15 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$i8bSjDD.2fkPRfPssTx9pRCK6UDhMSOoR1aL4NpiynPyp0OfpMdgf','user','ak_3f063e71186f5df9','2023-01-02 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@company.com','$2b$12$wCgjImVenCQYvK1yeO/LoNho0zdwaLfEKklQ67AD4xzT.iFklJ.w1','user','ak_049b880da06f03fa','2023-07-27 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'admin@example.org','$2b$12$ACs/nCe2x/yc/9HUl5R7Kcp3vJom2SaA4Xmmxb.IiIxCzZpCDzlZw','user','ak_78544901d612c857','2023-10-04 10:22:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@internal.io','$2b$12$TcH78QXvWqgrUVzTyw1SiSlQfW8UL0v8NeslEPByCm64KtTxVJmQk','admin','ak_86e3cb70920f515b','2023-02-28 10:11:00',NULL);

