-- Host: db-master-5.internal    Database: webapp_db


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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@internal.io','$2b$12$Hu3TQqm/vrHCi76QGrBw/cfq3FDhTa6SWYZA1KI1U0sy3R/JdcjeU','admin','ak_de4688346ee0a059','2023-07-25 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@company.com','$2b$12$LRUXeXffWQl9wMmGA.LmMkkDDD7ReCzH1LZCtCO2V/fItVEN8NLIt','admin','ak_32aa4502ff235ba6','2023-01-21 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@corp.net','$2b$12$lNTX3.c3nCSwiT0P2PgPDjDhecOxXO4V5cZgSTQofl7ieeoqb3eLO','user','ak_73014d3352821f60','2023-08-06 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@corp.net','$2b$12$vUCVJ0zCUcNwCbisCNWqlkaZ729W0IUuJEQn9qIjREsYdcFzmu5rw','user','ak_e85428b22fe9fbea','2023-12-08 10:16:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@corp.net','$2b$12$7qTwW4LSqiwUh5sHEyBHseESVeibSjuZWM1A3aHeplV6dejAwxajJ','user','ak_3f6afd81d75952df','2023-02-16 10:12:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@internal.io','$2b$12$1oR7eorE55p/AfWpMsAoozcbXndVm7OTCjPt/WXwf8/W4DIdoSz/P','user','ak_3208ae196a189841','2023-04-20 10:05:00',NULL);

