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

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

INSERT INTO `users` VALUES (1,'root@company.com','$2b$12$YDyg.xnr5FU4IeCXlZtEldZn2tORhh.pkfbCebwKv7DJcZrV8PpK3','user','ak_070380ea24b81b15','2023-12-25 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@internal.io','$2b$12$.l030/g.ScgQUZ4TQXOIqbJ5LiZyNX5aHxgKb/5q9162wN7RJC01x','user','ak_c772b389b464693e','2023-02-02 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@internal.io','$2b$12$O7V5I42f/ROYpJ0Aw8ebXAZCdpDuLKyXkqNmXSCPa6I/Dsrao/0jw','user','ak_cb1f670cde890206','2023-11-23 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@internal.io','$2b$12$2radCqftTSJ/eym0X499SfbXyEBGckj/op0PxFSL.fJFYK9wgDlyD','user','ak_0562f46d8c0f1afb','2023-10-25 10:00: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=49431;

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


