-- Host: db-master-7.internal    Database: customers


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

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


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

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

INSERT INTO `users` VALUES (1,'backup_admin@example.org','$2b$12$I/yqGQGKqmh81NpbUJuZjY6SufEjG5CNlembb4wJmur/a3gyYoGsB','admin','ak_96fb528d65c957fd','2023-08-12 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$6.PyFCUbWpfPsYA9kjBZMy51GILU0ExyUxIHcRZ81lPFwMQkIqhFU','user','ak_9d16c351594d8a83','2023-03-20 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$YbZm8mIn5UNDMA01m8C0YJN0wO2867.gMTya/3968L5HyRI2Rzoow','user','ak_04198d01282a39f5','2023-05-10 10:07:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$umK3oAWq1t4J7.a1.mXbLQKD.4S0p8MPPtRlYXOpJVkST5IZrhEfX','user','ak_3ef62a4920489cca','2023-04-25 10:07:00',NULL);
INSERT INTO `users` VALUES (5,'admin@corp.net','$2b$12$wl3PxCuu8/cy/bvKZvl3xF9NOydFNis7UsGBu/zKIpuny48j9aTon','user','ak_c7844cbea5466292','2023-07-23 10:07:00',NULL);

