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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@company.com','$2b$12$0iVv6sd0lH/URB7TZ7yg9UW22hmHitPEpoDo5TpZXzOyQ5OQ7L3ds','user','ak_768e02eb6300a47d','2023-09-21 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@internal.io','$2b$12$b3pZladgukzIsHonVfoC46mbJ/z6VHwzEm/y0/4lZoLGTgZ/5nGMj','user','ak_c360da9408e49204','2023-11-20 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@corp.net','$2b$12$NZhct46zxC2jo.iG7KqpciE1zbu2pl6D4YTmTr56r5MklIV8LUj.w','user','ak_840bc133151c7156','2023-10-26 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@internal.io','$2b$12$v7vpxhafeIkeerne04yJtYP5GzpwoQuskgYiOA7CeW7jfkVT.00QL','admin','ak_edce732eee384beb','2023-01-08 10:16:00',NULL);

