-- Host: db-master-8.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=33619;

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$psik.fQO4q4zd/0emAi.h9WLQnDtS1LHr7BI.CJEQiDXQqbQ/XxY2','user','ak_7c703aaac392c0b8','2023-07-01 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@internal.io','$2b$12$QQ/qQsRf4k51GVpdyY8OkV0fDHnVkWyUdgu.kCwXIhNLsxZpb.eNO','admin','ak_7fb968669e1a7800','2023-02-09 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$h8uHSBWGHx5ncJKsAVQ/OTvvq8WU.7vF6zY0/yXZ3yqxfNz027z2Y','user','ak_9d68a62cbac43af4','2023-03-27 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@internal.io','$2b$12$OM.bRUoVKyeV9h8fMbepIa8K0rU1FgLsmhcblX9gTVJCsD1sV5WSW','user','ak_d340b943560612b0','2023-06-17 10:16: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=30412;

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


