-- Host: db-master-0.internal    Database: production_db


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

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

INSERT INTO `users` VALUES (1,'admin@example.org','$2b$12$SGSgdbrBCn8MNlCfB57m8IL4JSDn0fw6.RrNA3arDl.MNm6x2mnd1','user','ak_9b346d6091286795','2023-01-04 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@internal.io','$2b$12$QGccvVYVL/AT5eswcm/advCIou1M/hfMtt2nOU1fwO0zvyD5GWSl7','user','ak_f291054273f75a67','2023-03-04 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$qZJONqZC/NiDhjvqGxa2bPH2ZnlKWd/kskWqGQA8jjYKClev9ab9N','user','ak_b674461d9d7c83fb','2023-03-01 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@internal.io','$2b$12$zvGVv35EthAM4ks/qLRcjuPM2oNU6B7G/.M1EU3W.PAwJZ3NTKANr','user','ak_ffa702b985389975','2023-06-12 10:00: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=2122;

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


