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

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

INSERT INTO `users` VALUES (1,'jane.smith@company.com','$2b$12$r4ygNDLAu42aKmIfRsUCsqy.E3LaTwUoQWj6Rq/7Xl3q/ogccpVvM','admin','ak_c17b34ef29afd2bc','2023-02-19 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@example.org','$2b$12$u2JoTKxmiOHW7A1EQ0vhXrEKvFc/uHF97iKbFnOqeNWjSgNY95iBC','user','ak_9f1dec41a62b8c2f','2023-10-07 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$ReYLSQTxGC9UWYw3iORJSZ3iRh9iSUX4BLpaIEW/kgyCcYFz.kcxZ','user','ak_63a642b52e986d84','2023-04-04 10:16: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=34563;

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


