-- Host: db-master-0.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=1442;

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

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

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

INSERT INTO `users` VALUES (1,'root@company.com','$2b$12$GCE7u1ipu47O02HCBbc0wRW.A3U9K6MgFQk.KewvL67UZeVeFL5Yh','user','ak_4c09191408bfa55a','2023-01-11 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$Yw8S4zd01AsPe5tIkBP4lIEP9plJXAlSjJ/ner.ZrfFI8OFpjK8yU','admin','ak_ea188a082b4652b5','2023-12-08 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@corp.net','$2b$12$m58c1icLEcl45SicNW5ZQGapyquJOZiDHB6Kdf1poRgGw1HcNvpZQ','user','ak_9d18a7a35c599051','2023-11-06 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@internal.io','$2b$12$I2D.4QDwRRoYgxaXl3acirJ.yONO3z09CyizIznf2D6d2jW4NhLCf','admin','ak_8ccd62d1cfad05dc','2023-01-18 10:13:00',NULL);

