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


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

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

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

INSERT INTO `users` VALUES (1,'service_account@example.org','$2b$12$BDvCuVlNp88I92Bj/.u737JpZsnEUUtZno6jxeJXZ1aAeqqHoUNBr','admin','ak_b6d2320990ba3c8c','2023-06-04 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@corp.net','$2b$12$U..UF2KNktYiU5tiUSb8fo1sEoprvF1x1UK2UyCJIDLKAAs7QxA9E','user','ak_91bb9f9e59cbc6ef','2023-03-15 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@example.org','$2b$12$bxXqFGpdZvF6wf0Rrl/tczlKqYABwBnBVzijamjkwBLG7QBOHO6w/','user','ak_a1d712beb6494458','2023-12-22 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@example.org','$2b$12$s3h2mCcg66Iuh3zzNaPKlViBoES9NZmM2QUDUPy6dWaxfx3ndMWkc','admin','ak_8c29b5378880d4f9','2023-06-24 10:21:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@corp.net','$2b$12$jSdNXTAgxXpXGD44uxZdaqULKMhz8VXZZFIQ17.TpguP4WVN1ZsdA','admin','ak_af51ea24a8562eea','2023-01-17 10:09:00',NULL);

