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

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

INSERT INTO `users` VALUES (1,'dev_ops@example.org','$2b$12$QHHN8y6lj1rYbOXL7UR8NjHenEoXX5CHeuCBycXzr7LP8fOKSEq43','user','ak_c384ef3a81822e7f','2023-06-06 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$juY9ra/.qez8H2dEaXX2sD1OfVrc/WY7JcgRskFFerw7RA0QUig.U','admin','ak_81e15672a0ea0a6b','2023-07-22 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@example.org','$2b$12$ssphJRlhn0Y.n./fNpDO4pHHHOHt4A9pl406OCp0vwk6hLX6Y2tRo','admin','ak_220383f0c620cc37','2023-07-03 10:18: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=45312;

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


