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

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

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

INSERT INTO `users` VALUES (1,'root@corp.net','$2b$12$tmBpOkNZIao6fUhfryyYUlYWqDf5g5F/NlV02.e6h9gmSqQbILexq','user','ak_afe86ccf4e6fcc08','2023-10-23 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@company.com','$2b$12$Xoyt4ASi4L42qlkCSL8gvemOeeWmVDkLWdQGLmd1N0.wi8xVNEaaK','user','ak_baff104520dc96b1','2023-01-04 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$CVcF63P52z5T7p2zGqP9raKEdz3tk0CRDGwxeRg.UlScRPjIpPAhJ','admin','ak_f6fbfa77143d3d86','2023-12-07 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@company.com','$2b$12$C2eT2Gc84.GH83j9366IxQqKhLaIsDCs5D6B5pAIgGzoe0Qax17zc','user','ak_034e3d3859168a73','2023-03-14 10:06:00',NULL);

