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

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

INSERT INTO `users` VALUES (1,'dev_ops@example.org','$2b$12$Sr6F4.1jodYOK4QIAv9jaURXXfOIOqIUiLwAoluZi4dQ0.gx3.BvP','admin','ak_166ab4ac421572a5','2023-06-04 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@corp.net','$2b$12$46KYQloB8rK7oFnD1ASPy.IGNI6aMQBgeWoEf3pPScm//jSai9ybP','user','ak_187109261f339e49','2023-02-02 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@example.org','$2b$12$0s1ntns1lZ2rSHg4xJYcKZLTcSQO9NFnfjU.jDuipfLhCqBjmD.2n','user','ak_40cfad833d98dad6','2023-02-03 10:05: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=1588;

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


