-- Host: db-master-4.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=11856;

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

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$dRPiqSA8CpRuOcYXcs7FUF5FcP1sPIPUWSKfN7YkvVkOYIFMjVe.c','user','ak_2d2c5715c0c4bb1c','2023-10-10 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@corp.net','$2b$12$jPV8CtyTgD6Gt171LZm7RYf4KPM7WxSgIhvkoMXsC3Tzh6CevDeMS','user','ak_0e858171afef1b97','2023-04-20 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@internal.io','$2b$12$byt2K59aI.DWJO8XOjKG8acM.Ov257ueKppmw9iDBPpicaRAlSMEL','user','ak_3fbd604c91933d8d','2023-03-16 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@corp.net','$2b$12$kOriVTUtVMsKmfclad.Ozu.GlkfMDah3PA0N2550JwIP5dHhKFWhR','admin','ak_76694184745be4c3','2023-06-23 10:02:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@corp.net','$2b$12$RHuqd.mruYmvTuYMt36DR5Oeak0ajJKicf7VQhXaz6rEmVIWdWM4F','user','ak_2c3519271d97f97f','2023-03-12 10:17:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@internal.io','$2b$12$c1roRY9EBU6snX/sWdHI3UpNKLCX1/8hyw4gN2BYYzWEHdmf9LVYR','user','ak_a8d187919fa9934a','2023-11-04 10:19: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=2830;

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


