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

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

INSERT INTO `users` VALUES (1,'backup_admin@company.com','$2b$12$cqQQw6ukIDDaV6htrSYEZ.1h7kSMz0XL9mwpogdqSlXVPLDjAa.6C','admin','ak_9d4a9b9f1aafebe7','2023-06-03 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'root@corp.net','$2b$12$KiDyUHBH8UnlGbSsoy5dyAuE.om38XHpD2yqUHy5.SiFQb0tB7/Tc','admin','ak_ead0a46e08a74b29','2023-12-26 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$kXIF/3CRx2fRkmEsi7fI/hrTibyMtbu53.r9mj35rdPN0hAuX.NTu','user','ak_49f615e706f06ccb','2023-07-07 10:07: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=50547;

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


