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


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

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

INSERT INTO `users` VALUES (1,'deploy_bot@example.org','$2b$12$U38qHz8B2nQ.pNFVfdfcUR6/5zvYBcMNZwitR4EzgUMyDNc8sheBg','admin','ak_87860fbcd1df53d5','2023-12-13 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$Et74uczmCt6GtP5zJENgA3qMvVv.3CcTzJZE3X0vUcGyp2aCM.fNh','user','ak_aab05f80e60f3051','2023-01-12 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@company.com','$2b$12$F6mQ0N480Ftlk8HnhRQ/6sNoFyDTMogJEH4AzIJtx0J01.rFBZPGB','user','ak_f16288761884ce36','2023-10-16 10:11:00',NULL);
INSERT INTO `users` VALUES (4,'admin@internal.io','$2b$12$NYI5GyD1fZwDIIkJKlCJbJJa.BwJ6MCpw0h3qBfl9Nfu.I0Typ5Y0','admin','ak_0ac260a3e649df80','2023-12-07 10:23:00',NULL);

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

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


