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

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

INSERT INTO `users` VALUES (1,'root@company.com','$2b$12$hqGU1wzabizYzpNzGfraxnetBkrOeXWUVYxw83RuGUWtktEEqIb0r','user','ak_f3fec61ae2c0fe90','2023-03-10 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@corp.net','$2b$12$Uf48Afex6lhk1cbITZDN/q.94utFzqwpsCOYWW.zSzNuGxPZ/i0Gj','user','ak_cf504c2cf5dc841b','2023-05-22 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$svWO1yv30NnX2g4hqMdpvedyeMmWxGdFAUA3OMLz67nwB7w6FRs1V','user','ak_b1855d2b9556eae1','2023-05-15 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@corp.net','$2b$12$Tpp.FCWTZEKy3DFpHkuJkm9/L7kGhpDJ8hpQiXes7ZOEbrNiqn3AA','user','ak_7a7ee17f2774217f','2023-10-02 10:13: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=9506;

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


