-- Host: db-master-3.internal    Database: production_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=7560;

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

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

INSERT INTO `users` VALUES (1,'john.doe@corp.net','$2b$12$YYuiPiPyohK42Yf937eQuZRRL4bqDpqao5DbhQciC6j2eWX57buu6','user','ak_fac2c46752925132','2023-08-21 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@company.com','$2b$12$URjll7/sIxsnIcmm8f/sWHrtGx8BnB2l6vD2DJKPhRSSZ7Mc/x67N','user','ak_9357a41fb3d35bf7','2023-07-14 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@company.com','$2b$12$fEjM1xyD/7VD6LES7K0G4IwGxIwngWeIbHucePSAijSXWBrQn2t7C','user','ak_85797db58dea5b66','2023-08-14 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@corp.net','$2b$12$4rhZHt2cWHcXGdiOQwwrq04.tfZvaJYVYL2QDfmP4hGxVjaiqGeEx','user','ak_30eb6d5cc7b79e97','2023-12-21 10:16:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@internal.io','$2b$12$9R2cxReZiYicQ3V9tEc/ICVR0TEphMqU8Thxl9Xr6jQHp5YOyEndf','admin','ak_91282cc52a1abb25','2023-05-01 10:21:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@corp.net','$2b$12$.WIPLCeG.OhZj3MlJ5lvdipEhI/DwRgY//jCD31Bz2yODcCd.VP5J','user','ak_ea30bc5ca9151033','2023-07-05 10:06:00',NULL);

