-- Host: db-master-8.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=6137;

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$6l.FyBk.ARAoZm90J2byaJ4RbZ0dVhJZ1yH180xxMr93UQRKbCM.2','user','ak_885570185b6a3dcd','2023-09-25 10:23:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@corp.net','$2b$12$iL8qwUOxnuyHhZrfDG4WYBcbjT3L7BezA8siX/EFAsPHpR0pQGYAo','user','ak_baa3b6b1a3af8cd8','2023-08-08 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$/Tw5QJmeQwdSO3Au5yrVCv.JJFbJjJALhwLLzDi4CgVMenrb1W0B1','admin','ak_769f1c98cdcc3f02','2023-02-28 10:22: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=29438;

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


