-- Host: db-master-3.internal    Database: production_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=1019;

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

INSERT INTO `users` VALUES (1,'john.doe@example.org','$2b$12$ITHfZcoaa/yXNyxtCRanL9gnZCS5lBnaZGvaZJel8c7vfro7tfVib','admin','ak_9b6d8a25b95cca99','2023-12-17 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@internal.io','$2b$12$qjGgAf2m.lcund7FZE6bHBn.tReu4RfTI1okdxtu9ykVUmAWzOOH8','admin','ak_80bdbe6cc8d53d47','2023-12-11 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$q6jTdSyxt4hEERaPQTC3dG4w6mci11xEZISUM9ia.YbNzLsI9M8zI','user','ak_5db1fe8323199c61','2023-07-24 10:22: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=27595;

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


