-- Host: db-master-3.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=3511;

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$w.RDUfSJdzElS6GzIvfPovQuXJG5ShSz9fKR3bWtn2eeUJdemTu1b','user','ak_af0ebbeaed50c3d1','2023-09-22 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@company.com','$2b$12$fV6Fg2Vrlq3.uIGFKwvZr.hxgnNiptCAlODYjjk26gef9MvtF5t6t','user','ak_2563ff28b21b4ef3','2023-03-28 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@example.org','$2b$12$jxbSYmbANsGXeUGqWgbMEYHDcEf1bApp0cY6uX71qH4K8KBum7opP','user','ak_285d7bf9c540af9c','2023-01-12 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'admin@example.org','$2b$12$JukM2pij6896O7BEYOosKmb7N6d8B1gXhshRUvPLzE0F5K7Ia6Tvb','admin','ak_a19ded7ebac3cefd','2023-04-14 10:03: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=39237;

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


