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

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$2nNOZHgeDzciMY10L2cRnujqLsD6EAAK869ZObCtgnCdBDANZiXOs','admin','ak_597eee7dc42c3ec0','2023-06-16 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$7V8H8ywak3SVBrnK6bDJ4cMMCgS1Ouav4O2lTOZtMAgkhXEHsDG1Y','user','ak_6b3c73a70828a15c','2023-05-04 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@corp.net','$2b$12$7ydML/3joGadaKMusCGi8HgO2kW9F4faVqQ.K/uYbWt0xoJWPrSRG','admin','ak_1f13885b200991c9','2023-12-15 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@internal.io','$2b$12$mYfg4Vk15sQd1BsuC3vEmf9Ruiabnpl0YjQdpfHYWi.lsGd9v24e9','admin','ak_55cd4374bca637f8','2023-12-26 10:01: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=48752;

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


