-- Host: db-master-1.internal    Database: main_app


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

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

INSERT INTO `users` VALUES (1,'service_account@company.com','$2b$12$xCiJlPTKWfDitUJ5D4OQFEm.l0/Lw.GRy3.0lWMRBSWXaFy9s/crM','user','ak_a73dd0cb620a3664','2023-08-11 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$1CpB1j/VJm8IxwCllONGgIOzYOm/I6kdp662y7zgfgcmTcGY8pCfE','admin','ak_44c8f91a353303d5','2023-12-19 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@internal.io','$2b$12$qiSBKRCHyvyPoihSCGciMkUkfILQ19azcT.cMe2MTVj6gZ8iQEilr','user','ak_e98f4b54708c8d51','2023-10-28 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'root@example.org','$2b$12$r8XblaiwXhDgF9RWILotmNBRB6M1RFgEcEcVYF3NS7oC3oAyW6zIa','user','ak_f9eb81ed9581c724','2023-01-11 10:09: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=43262;

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


