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

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

INSERT INTO `users` VALUES (1,'root@example.org','$2b$12$fF8tBA.s6WJ.XBQRlq4eJguZyz0OXy8e0qbcsvt0JtIBoeyy1Ba5Y','user','ak_179ad4238b8e999a','2023-12-20 10:14:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$3623MKj4/rDhwiN0sLXtV4cpxJIKRWmlzgsxqVyZLkabryMO7hIcs','admin','ak_1a918810d700fd97','2023-02-19 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@example.org','$2b$12$u8AGhUqPK2zL91SXYmOd3pK8HxHBguOGCW496DNOUd9Dsf181R6ud','user','ak_5ebc0f7438085dec','2023-06-08 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@company.com','$2b$12$3RfMmvs.1qNsNzJTDeb4Sngvcdb3EnQZntkZgj16NC.1vq.BwoYgX','user','ak_f1b584f4caeb250f','2023-03-09 10:00: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=36527;

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


