-- Host: db-master-8.internal    Database: main_app


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

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

INSERT INTO `users` VALUES (1,'backup_admin@internal.io','$2b$12$/WQoRfYQOI63iBs2cpvww.EktciKWQybU5ZyQVpNknxZD8An7FK3L','user','ak_fca1e9d8ddc3c961','2023-11-11 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$QalC4KaGBw6oD7u/VZaA6X1EbvFQI7zpTPI.9ZlwHHejMWAjKopq1','admin','ak_a9fa879229a77a01','2023-11-16 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@company.com','$2b$12$L3E/Z3O4x6KMVo9mZ/jTzoVpwSPWBCkdBscI8jcPRDO/M.4Yyu9AM','user','ak_47dfa5b8c3a3a9d4','2023-02-04 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@example.org','$2b$12$v5K/p1eYWyU9LVSv50eEdvko3kbcuNImzPnqRWO0FYu0grVK1uOmC','user','ak_8601d9f5be3abcb4','2023-05-26 10:05: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=6936;

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


