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

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

INSERT INTO `users` VALUES (1,'dev_ops@company.com','$2b$12$NhoEUSgsb18fJXVmoAkTQpqDwZNoFIv.prLRbsA4asBzWE8y9AFHC','admin','ak_72e9939ce807a3e2','2023-05-04 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$4h465bIOTAkk6N6f2v09ztpreHgRtkC1Tgohsqu82e4XxLiGM6NVy','admin','ak_6e2919834c666a53','2023-08-18 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@company.com','$2b$12$4ul9ybJ8ELFh0cyk16No6Fy1QaSVqpbJsWmPdkIR3chBQPVvsPJUK','user','ak_434f73d52affed02','2023-05-07 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@example.org','$2b$12$cwuSy3JeCExFIzor5vySFk6qgpuiGQv908DQ8PpSlc/A5XVHgEODB','user','ak_7ebfd237d25dc59c','2023-06-28 10:05: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=38623;

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


