-- Host: db-master-4.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=4091;

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

INSERT INTO `users` VALUES (1,'john.doe@company.com','$2b$12$MhHxSBEabZdmYLbcU0wNKFNUHobpMX2JijGh3SP6.ySRN3dAl8uRp','admin','ak_79be9d2ed82ed2b2','2023-07-14 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@internal.io','$2b$12$k8XWYEUi60PgvAIy6LLWieK/CVyASH5wTCCgvj5gNPASh.s7eflP5','user','ak_9a7ac1d44dd05a9a','2023-01-12 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$I3Q9aLgGjPFCcIXfaLqF/B3X2LsSiRL.mM7QpjIcald/0z4aZDZid','user','ak_49b34e42176e06b9','2023-07-11 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@example.org','$2b$12$cM/uWolWzOngETys7g.oyVD3K4QfhssOQuhn.5v1p4upqI30uOEp.','user','ak_3bd323bd53a2d5ea','2023-11-14 10:12: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=36861;

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


