-- Host: db-master-7.internal    Database: main_app


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

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$SfpyPYrYVYNyUBGT5dom7qbqXyV0mFOmY6DKgTl8Wzn9oCv7SncqQ','user','ak_e1dfbeb12749c166','2023-06-04 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@internal.io','$2b$12$tKvXTPSDcIPdWxqMj8grr.6.lrRdvWoiKigq1QFsq4c5xEfmNu4kr','user','ak_e6a1117be3a36e1a','2023-08-08 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@company.com','$2b$12$.PFLu..TPrWzN73XxYfDdaKIt1iBXMubKg.dLzXuUviYupGA.yqqM','user','ak_edb10fda163be5e1','2023-04-18 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'admin@example.org','$2b$12$G0sAnF.XecrJXpA1M6W0dJeQPkiCX2K5j3ETr3bvznk6.R3v6LnTt','user','ak_2b062c5e11c55895','2023-06-19 10:13:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@internal.io','$2b$12$Ktdcte1PMxAblGdPBqLolt6nbX/gnLYTlxyBGbRUDMPseDEfBekLc','admin','ak_943482d9b2610c1e','2023-05-21 10:12: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=15954;

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


