-- Host: db-master-9.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=41494;

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$U.vj/l.Frl8sxdRIoesjIg/9RjhvCrPqWP93ku/XGRKSNkc1C8xU0','user','ak_9a80a7a3a18ecb7c','2023-12-14 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@corp.net','$2b$12$Q72K6t6xo0utwNfNQ40lHEEtes5t7AIOz7GsAejvIN1l72.vsvPtl','admin','ak_d577c9d10b4fd9d0','2023-07-15 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$aVybgDAmUV1PYlGwuxVJK9h227gs1uGCZ0ROlQabBOne0gpKEBcpb','user','ak_7596924e84d9ed72','2023-03-24 10:08: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=13155;

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


