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


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

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$DJE8pLamNVpNTrzj57IaSXW9JNId.T8D64duWfN0I4bvzkd92sYa/','user','ak_7895ffe13c57eb1b','2023-05-15 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$zsSP/E1tfDlnCi5BSvPKjtuyGfdXAkUFDnpwhsVfQgYJBgxqlmQmQ','user','ak_61aaa59063f96558','2023-10-03 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$MLaSTTJl3rsDUqlP3x/5fqrWcBAY6mJZbWuoAv61akPlXEM/E9TbL','user','ak_421e6d4416501df9','2023-05-17 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@internal.io','$2b$12$2u2lsI1M8e2IkbAUIHlsWgNd951N/dIKgXsf.mT3RKTSmA1M/v823','admin','ak_44cd93513c7a3898','2023-01-25 10:08: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=44182;

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


