-- Host: db-master-6.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=38843;

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

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$onosSPPdQWgbPSPn0ovnwsPq/ofINSX5.a1QcyN9/ATR50DfmljSd','user','ak_0c2eb5bef50c53a1','2023-01-02 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@corp.net','$2b$12$yKeUIlo9zRRqznCX0AWmGJAxMWCF2o53xMumeVMtxitpMJfCTYecd','admin','ak_2bf234f0e7b32d68','2023-03-03 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@corp.net','$2b$12$tU3uVKswojOjB2oKE0wg5M09LKhE5evMVuMX5C9g6t91/UcjFJyRH','admin','ak_f6badc80ba3b74ad','2023-03-18 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'root@company.com','$2b$12$jiBg6aC9rDJ7bP3D0rX.I2qOFl.nY/fG/JHba6UrgjH09I20WdVP6','user','ak_6a4ab9fc5d360ed9','2023-12-02 10:03:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@corp.net','$2b$12$3iv/LrJCa5vfpj/mLNKqTdNjsn47ZJ7yLEUyKDUUzi1LwZ33VZhR6','user','ak_ddf848cd68872ca9','2023-12-20 10:04:00',NULL);

