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

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

INSERT INTO `users` VALUES (1,'jane.smith@internal.io','$2b$12$x.qZkYbs.TxFIzanECSbv2bnfVoBmo6Q4b1efv9LNEUtgxQgs2Dqv','user','ak_d635641610274191','2023-06-02 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$l7mKfc.QfIK3hqJ1zHuYTotcQxEiV2qehd6hVagIW3xfEAJk07rqZ','user','ak_de73237566c1b23a','2023-07-22 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@internal.io','$2b$12$TBHjjU8/ZDTw5A9hCB9Jktj6K5xh4z7dUNL5k8UbvcL9jc4wTtQnn','user','ak_7d8410315f3c45e3','2023-01-27 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@internal.io','$2b$12$1pVjqyEEuARoZp4WPgghHBPnb9X1sHqEHBdSSQqvoV7MYQeEZlQ3Y','user','ak_eebc2018e1a46e49','2023-04-05 10:18: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=42141;

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


