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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@corp.net','$2b$12$FSMNOC5EW3.JNUJ5xFpHOz/Z11Yc2DB8dew/CuydM4GW77No6oZku','user','ak_930a270884ca739a','2023-01-14 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@corp.net','$2b$12$JQB3fjUnKo34iXYgtXAPq8buyCRrksgZDgiRuBvMjTKg7901aHAlR','user','ak_4b1e0afb765975a2','2023-08-25 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$8s8xkbxevSkvJsTrcd/xH5de1/TCl2Zz.hqkuRp1n3OTVyLS9hqL/','user','ak_6ea52a39590c0711','2023-11-11 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'root@internal.io','$2b$12$LXaosqachjVJaFcp63ums1meKnZyPHBE4pLkmNd..7RGO1GmynipI','user','ak_6c1dfc151cecce33','2023-02-26 10:13:00',NULL);

