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


--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `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=16164;

--
-- Dumping data for table `sessions`
--


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

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$1hxYl8waYmKGBLFdHMk3.aiM7SI5Gu6QHi60E.2cNarXZs4JYDe8R','admin','ak_0ac7dbf067bc9df2','2023-07-06 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$l9m.NWA..vF8/gq9.L9MHGpdwb.X1kKDImFoVK3ZsO5K6tM/0AC63','user','ak_54558ef6bccd8c95','2023-06-05 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$kNUTwPJlLD7GeRIwJCoO1ATcEiRCtIF6lNCe/lIcrj6niTmpVUM4l','admin','ak_feda84ca0fd735ae','2023-12-24 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@company.com','$2b$12$U5QMTeg4wKjpVw0XXrJ/uJOd/v4fjy551XUAfA54hy2qOtsv0Crk4','user','ak_6716063feabc564e','2023-02-28 10:05:00',NULL);
INSERT INTO `users` VALUES (5,'root@corp.net','$2b$12$du943ow5g35stAQMfndW6oN9oSkPRNW02jVg65wN8nfXtUzK802ij','admin','ak_56c7888c6c5a48fc','2023-10-03 10:01: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=14401;

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


