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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$Rz4ZhqilrEhwue5aNeCG3TTECr8kC5R2uAQ4Wt8cdi2JFich6esSX','user','ak_25f9e03e1a20df43','2023-04-20 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@corp.net','$2b$12$FC0mE/9ICh8/3pzpcR998aPsofDskqyE2uyUYSafQgPyQuod298mY','user','ak_c6f0e837545a24b2','2023-09-07 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@company.com','$2b$12$JtxFMCvhv1ZUCIX8AMJrNpkC9u38a5i4XDqUEU31OLJlJoPlPsr1t','admin','ak_254ba34a672eaf27','2023-12-01 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$YpJHMZTQcYVZgkDICtgAeJJMrV9qJ9atUXA09Nl/hKMinNj/cusKT','admin','ak_d3b54e4a357eecdb','2023-10-09 10:11:00',NULL);

