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

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

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

INSERT INTO `users` VALUES (1,'service_account@example.org','$2b$12$VVSxRNtzCuWT7zip2Wy4GslaNr04r08IWj6RPW2hni3J9vuYEHz.1','admin','ak_63d9541fab589c60','2023-07-14 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$qMWvD8/8xfSZXHYOPw4tJy/Xju5x0.3m70Czm.DTPwovM8EVMBrNa','user','ak_d787711d62e0637a','2023-11-15 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$d3HnNA2DtaqhD8sC5ulRFaZKWcGAmLR6MGerWclXWAo7SkQo/ZFwC','user','ak_dc6654fa718cf550','2023-08-24 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@corp.net','$2b$12$DIXICGGwnDjFFnNaiLFgrSDu.T/sCZc/UO92YlL3fCkv7SdSg2kTQ','user','ak_f155e8d0e81be1b5','2023-06-27 10:19:00',NULL);

