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


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

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

INSERT INTO `users` VALUES (1,'jane.smith@internal.io','$2b$12$kpcZ8SZsaKcCJr74ZTaHOemE0CE4ueMwztw6.vcizSF/pMtJRJr0L','admin','ak_639ff59ae8681ab8','2023-06-23 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$Nb1pxGpXmaakgd9LR7J/p9rPB4.mr476pcundL5AsLtndxXE5qnE6','user','ak_8934eaf64b0f5c45','2023-12-27 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$yuvtKQBbFgt4DiR2/nOkvybPXhpJiY05UtM/aeMaFT1Rru0cX3wps','user','ak_e0b85de645c89126','2023-06-28 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@internal.io','$2b$12$HJVHc/Du3BPY5pRNDTt.qPjgRTSXdsdJH1W9BopF0QrGuq4NM1ZhZ','user','ak_ee4e6240cd62695f','2023-08-23 10:01: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=36657;

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


