-- Host: db-master-1.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=33689;

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

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

INSERT INTO `users` VALUES (1,'jane.smith@corp.net','$2b$12$SmVe8Z902Jfk5z9/1GgTfw4KNGaIJg490JL98XPJ9Rd4.s/l2iUkR','user','ak_9604c3ad17a2b931','2023-04-08 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@company.com','$2b$12$nJMEkcHamYozcJJsZ3LWCuzx5eD4gb5kxyt7mG3SDUn9Pj4K/uq9F','user','ak_29e85365fa364f06','2023-11-13 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@company.com','$2b$12$3pZtjQot1T/ROfcCJ7T9LUA23EB/KvgltQ5iDYFVT10OwY/4sLb8l','user','ak_757c0bb6aa45e1cb','2023-10-24 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'root@internal.io','$2b$12$.46aJYQrDBaUgHD3AU3dh8CDRE161MseG8CXTjsDsJEVtTA/IFoBk','user','ak_70998409e14e573e','2023-04-02 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@internal.io','$2b$12$d0M91i4So.UEIde6G6ZrPGQTZvfXhdaMVezsaak/Ph23y0ilR4lVY','user','ak_f0c265f9d34cfffd','2023-07-27 10:02: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=34737;

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


