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

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$acXGHdrvdN6BZqB3CqiMiXEhGoOLoTj/exT28bQrpOwrkSs5DabXV','user','ak_6f004e18c1b611a3','2023-10-14 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@internal.io','$2b$12$Ev6rvcP8ttguOXxIrfzThD/xmYGet.zzmhxr2rzmJOne/JkeaE5aZ','admin','ak_2bf258808fe26f86','2023-09-20 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$TqQFt0BleUkqtULGHe4QxwNZsTHDmLTWDSv1YLqrndfx1gJ0saMkE','user','ak_1ce685f5dac78471','2023-05-05 10:14: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=8316;

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


