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

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

INSERT INTO `users` VALUES (1,'admin@company.com','$2b$12$7Rx2AHJ1lA2mXOVoT4fDk9z52xW9YH0yy8TL/pbEghDfHbbz0MEJd','admin','ak_4f92172a1f2d4c5f','2023-11-28 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@company.com','$2b$12$a.VJ6FLmLUAG9F9wM84ob99RBUUcjDvjTzlGacR0a37Soim468KcG','admin','ak_42964400aeb2d775','2023-08-21 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@example.org','$2b$12$B12JbTYGs6bDMl1WmPRHAyUl42yGj7qWMKIM1fccRWHAD57xJKAA6','user','ak_fc15f8afa2ff092e','2023-12-17 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@example.org','$2b$12$QLKm2Ovl8bQjAR5Vq/vp904o7Dmd2SGahRbT7R9fR/zrn9lovZ1dX','user','ak_a0ad91a07c7bb59b','2023-12-16 10:05:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@internal.io','$2b$12$mHqctYgrP/FSwmQz0cS0can0FLRtay/FevedPnpVuuucFzmPXwEKi','admin','ak_4367a6a0649ab4f5','2023-11-04 10:07:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@company.com','$2b$12$hJ57mi9e2HZjDGqI7D/F3fnhnVZCobZuJwQO4LNl5PNs3ThBx0agf','user','ak_68bb02f5ab16c6f0','2023-04-15 10:07: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=44631;

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


