-- Host: db-master-9.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=30143;

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

INSERT INTO `users` VALUES (1,'root@corp.net','$2b$12$PkqnMwdl3.JH1OUbx2Xym7RCTEt4ZbixCPkd/rPYYjc6pF3Ei0CGC','user','ak_33dc500448382e8c','2023-01-20 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@internal.io','$2b$12$njJuk8FaRmE1V/qy4llB2aRFgn9reri97cZAy5HxxpMQ2kviPej9Q','user','ak_995a024c61a0af08','2023-03-03 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@example.org','$2b$12$.LkotJmls4pIWmfkv7G7.1qlM2qSKc5Q47VR0r4a1ZNAXODwmwZFP','user','ak_05c08bab1ad406c4','2023-05-07 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@internal.io','$2b$12$YInrn6dZi5mUR36UK0871WtFDRiPJ0tKfMYQL4sgOYEe7dfS/54xm','user','ak_66aad89b96fe42d0','2023-06-25 10:06: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=13224;

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


