-- Host: db-master-2.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=3749;

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

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

INSERT INTO `users` VALUES (1,'backup_admin@company.com','$2b$12$wq2dxhE29L415KIlv0ZfFzIJSEoEh1nh44rOqyzhjANosaKleQpE1','user','ak_b4b42618a2f1de5f','2023-03-22 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$J4WS7LmxwLrA.1zdOryiHi8PLlfK9ws3mMR1CICdCYuQY0Kypa/Mg','admin','ak_6ff466697d62acfd','2023-04-15 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@company.com','$2b$12$lkeQh2.iJcc.gVT5e0YXwsgvci7q89KuzTjgxT2LC95TOQ4d8fZdb','user','ak_4be3d7f98590fafd','2023-10-02 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$LFDUq8PbXhWzr2bp7lC5CcjiPpymppuldTy/eBhhDc4SE7ytyGY4d','admin','ak_7ed10a9ca9d95ca6','2023-10-02 10:22:00',NULL);

