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

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

INSERT INTO `users` VALUES (1,'admin@company.com','$2b$12$H/w5wdgznkU.MyhVAQU06u2QDp0Imwp.ASX4aGIxtM83dT1Xj9H4J','user','ak_8e34b4ef9a2c5781','2023-01-10 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@company.com','$2b$12$1ohCd731BQfXeTs46omxwigYDknpqwoWv/13LnA6NNPrAj2eDrPI0','user','ak_e27b38bd8c29e161','2023-10-05 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$DA3sEKv0MU/Ete5ByCNhRJ6kxt/KVBEp0tDAIbTOIt8kD2aHdNjSi','user','ak_751d8c677169c282','2023-01-16 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@internal.io','$2b$12$Ca7NSzg0ZFUDd5HGv7/Ug6PHhrYA3.NktsiAcKFIpYAyjAjDid7CZ','user','ak_e4690f17d474db98','2023-08-01 10:06: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=9207;

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


