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

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

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

INSERT INTO `users` VALUES (1,'root@internal.io','$2b$12$PqTJPpFWkipxDbEYbhE9B0QO3bULQ4AolZ8RJF.NoOdvt5qbzf3Tm','user','ak_c5db805ba4890e8d','2023-06-03 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$Cx9elkzcX8VVl62JVmWuVQFmsqfKJeEE5nTp5itPfIgAHKR4rcRKW','user','ak_93600e0accd7f55b','2023-02-23 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@company.com','$2b$12$O3vdDL/qELuzt4LEpKt82ltc3DpCoNXgkCGlTLc7kOdeC8YydHrY2','admin','ak_8702c4fe91ea25ce','2023-05-02 10:01:00',NULL);

