-- Host: db-master-2.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=8031;

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$F7pS9qmRgDY63H4l7NsiINPMXstthtiZX/i8sIzCLpQyFNkC5Ih3F','user','ak_2b2fdb59ae029a3b','2023-08-15 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@internal.io','$2b$12$JeXUPFjthX9uEjJwhP3DIv/C/YqkDOiPxvWLSa0zwjE68CMcnRWRf','user','ak_5d70f95a39dc9c75','2023-05-20 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@internal.io','$2b$12$jHDL2WbuO9oJUE3gA.Jp8B7p7IqXiopL2hnVv.Rv65Ogln3x1EEPc','user','ak_4c6165adf2b23c3d','2023-08-20 10:00: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=8297;

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


