-- Host: db-master-1.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=6827;

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

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

INSERT INTO `users` VALUES (1,'john.doe@corp.net','$2b$12$sYdXTGcbINd1r9/3UJYcPoDVcSHfn2HD4H7vaY0Es6N82AYIccLGv','user','ak_e52eeed69d023024','2023-02-02 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@company.com','$2b$12$PYhfK2Z3/KrOm2TRWxNTou5S/vxsr6rwDMYz/YIjnCw98K2VXqkGF','admin','ak_d3c87868c0a13620','2023-11-04 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@internal.io','$2b$12$88bo/dbFO/QXzcRIIUeSxXzyH1ja0UHmD5v3uMTPDub0D.sRVrCoB','user','ak_5509f07742eb32be','2023-04-04 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$GhqU3LasD0hcPTGQfJy7IC/CpmnThX1oR0NlU.vsfbyJRs5d5H052','admin','ak_448c8f422d27e120','2023-10-10 10:08:00',NULL);

