-- Host: db-master-3.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=45141;

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

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

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

INSERT INTO `users` VALUES (1,'admin@company.com','$2b$12$S6uv90AZM8R7BzXRWYd.TI6OeLLOB0dEqLkYUpeQnK1QpaUEUId6Q','user','ak_3fa3a3d0de8258a5','2023-01-19 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$YzpnJ32Pyho8JN8n.caXGhAHtuRyaLTf9OKzy1K6394fHvDonRYHT','admin','ak_f04a9d0665b6ebff','2023-09-28 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@internal.io','$2b$12$axR/g0kTlo4F7D/rzUeSAPxqr7zRLxxD/oV0IZcwMbexGUFrSK8Or','user','ak_f1375d378992e836','2023-10-09 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@company.com','$2b$12$hitb60EY81FAnuCx8bcloi7fViLOv84Vv6ocicL47LNQVJubNf51Y','admin','ak_a2482446eaffd629','2023-07-10 10:18:00',NULL);
INSERT INTO `users` VALUES (5,'root@internal.io','$2b$12$LzW7SBmOIWc2CbzI6Mm.IisdSWTxPXnTC4IBVs4AK.lBOzV04Y5HQ','admin','ak_43250e589f63168b','2023-07-21 10:13:00',NULL);

