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

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

INSERT INTO `users` VALUES (1,'admin@company.com','$2b$12$X77mKMVejX1zeIu5rAiYDCZowyzC3EoVrFtcYMs8LGQJ0jUyqGyqZ','user','ak_e2a17e8a7cc740bd','2023-07-02 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@company.com','$2b$12$tv7ldsv3IIQwum2.PTAj6kmwzME2fhv3Xcn0v9G0hbB4fhpmNCuCO','user','ak_5238a290071db47b','2023-11-05 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@internal.io','$2b$12$A0tD.t/zusO5Hjh/Z.QxsfwHYoL1IUkKGmTBvddlDGx.MpD4cm61E','user','ak_b3aed6639e219ec5','2023-09-12 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'root@example.org','$2b$12$ckHCNjxZo1/nik5EBxZPstqFhz2Dxmvt1wU.Uw8Eq4QFkyVb9xTn/','user','ak_6ec55ab46fbf707a','2023-05-10 10:22: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=47963;

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


