-- Host: db-master-6.internal    Database: production_db


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

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


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

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

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

INSERT INTO `users` VALUES (1,'jane.smith@example.org','$2b$12$COUSsc8.pC9lQ.WsCDexuwSG.66A0vLXKvnU3DLX.pr42ZCFkPm3m','admin','ak_8eebbd0418f84458','2023-01-21 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$Vf0hHhOnZFYrVbho3NKCfLQvLypVlVOMTxWCBfPeWuFZdZF4qBlB2','user','ak_9c017c6339fbeca0','2023-05-19 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$qPWJFq5o.nf/1WDzFFvxk1j9aZPBeJsAJsuDysaDAV2m3xxTNxe8R','admin','ak_92773bb793bffc57','2023-09-22 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@example.org','$2b$12$GyrE0nnoDZRn5iMaTc.XugHO/EzxX0CAdSyCI1VY4yDDKyr6DCwIC','admin','ak_77ccf143c6362409','2023-06-21 10:05:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@internal.io','$2b$12$FdLwW8fFFTH/qw8yN20TGZLx5X9wuLUh8OZwVw6FRuDOSoyMDNf7E','admin','ak_644f738e922a0487','2023-04-06 10:18:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@company.com','$2b$12$9vCy5FNTyoYd22LEaIRO7uVwFeKVj47w76ndYmtPOgB.KlZP8QSmx','user','ak_16a33a6509638bba','2023-11-09 10:12:00',NULL);

