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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@company.com','$2b$12$ythhbETrdjdWpnrQHNg3kXCqHlLKvsDQ.7SWR1lPDnJGxL.emtk9D','user','ak_f563ed69bcb6ed68','2023-03-09 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@corp.net','$2b$12$n3OquUvWC./VIoSDtUPw5qqW7RVD.iFKbipa3N9cshlcf4.WpzExo','admin','ak_afacf7b040e587ca','2023-12-04 10:13:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$ZnukKPsNPOdG.OUYNtvGcMiNItEl9uujG5qeAjWm99G.Ef6JrApv5','user','ak_9991958cc2ab6ba8','2023-03-12 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@corp.net','$2b$12$f2kweS5pC5p/mRvBQc52HA5A0B9ZEOJdvgEpAD/ruqNfg0hx5fb.a','user','ak_db8bdb5ad7d06d7c','2023-06-09 10:23:00',NULL);

