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

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

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

INSERT INTO `users` VALUES (1,'admin@corp.net','$2b$12$gjARD3594QLGlHO7D4/bbpLhM8FoCEOHZd9J/ngcuwSKahCRl38l3','user','ak_541609ee768b4eeb','2023-12-22 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$RIluExQ7D/sEQ5Uc67k9KG62R.fMXmueOYyGKl1xmJAcqSM3AfhOM','user','ak_ac6fcad3fa18d123','2023-07-07 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@corp.net','$2b$12$ZGaevu/e8JOSG6T7Q5O1o0BTzyyYXM/lUjrBLfRPCH2csz4icg7wL','admin','ak_293e5499ff3167a4','2023-11-11 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@example.org','$2b$12$incP.fy2jphlNWgNjY5EXhkQT1uzUXr.Lbiz/z9vcQon64rzZq1mV','user','ak_857615020c65cafa','2023-09-20 10:08:00',NULL);

