-- Host: db-master-1.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=23249;

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

INSERT INTO `users` VALUES (1,'root@corp.net','$2b$12$5fVi7cVFjkHV0fDSCy.lIbXkB6RtTbP6Onu2OKxBGSsrLGrAwxm4t','user','ak_fdf7248e13ca880e','2023-12-27 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@example.org','$2b$12$TOlXlF0Tc0Oz4ZV4SV9F1X3kNilZqZnKmAj4eJSRFkHA1v3QbCQUZ','user','ak_ca292a88041db12f','2023-06-03 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@internal.io','$2b$12$149qSHy4.MRAPtZF1Oft7ZC0FlJh5pwteDthcl.18CdlkWlU6G20T','admin','ak_2183199636944b4d','2023-05-10 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@internal.io','$2b$12$1sHAV2Po/pqnTooxx1Ve7M0xQBtfc.heSzwGeNcj.YfMoTYyItxVQ','user','ak_971e4aa53ab9acd9','2023-01-12 10:07: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=40905;

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


