-- Host: db-master-5.internal    Database: webapp_db


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

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


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

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


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

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$xxGmj8altTpOjt1BdcNwYgJdiRPGwOeBYkApV/VDKhFUKybvd4zoI','user','ak_9436ecb321b49d73','2023-10-05 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@example.org','$2b$12$r8Uih9D7jUb328RpFDPumhDPB5RQXTQ9shhbILgz4y0qEvU6cRyHt','admin','ak_65a3d76433f4d20b','2023-01-03 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@example.org','$2b$12$vK5RIV5NfS/oGZhfk27bRa23EEGDm2JXw/uBu4fyHM7ET.bjZIwH/','user','ak_88b97adf8fdb3014','2023-03-17 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'admin@corp.net','$2b$12$9hlVp2fVQ1eKR48UzD9zUZxHwDNVYKpqGfG1nZcj9epL.blAHjlH4','user','ak_75ab5bef9d9abc1d','2023-01-26 10:19:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@corp.net','$2b$12$00t/3.nukue1GfE6NnnLLyvQFwncEykkD30tlR0WabN6KekzxjW4r','user','ak_db22be5188368dd0','2023-05-01 10:11:00',NULL);
INSERT INTO `users` VALUES (6,'admin@corp.net','$2b$12$MPuPC9wI1S3nFoHjgO1Hv1OTfWyibQnv.AB0cnXuhK9L78KiZzj9u','user','ak_e863fc70f78a117e','2023-09-26 10:09:00',NULL);

