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

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

INSERT INTO `users` VALUES (1,'admin@company.com','$2b$12$zZdrFhWRK5YGZF38x2RzAye.MHkchMIpInOOLH0L28s3FwBBbKSFQ','user','ak_a6c64a872f533f2c','2023-07-13 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@corp.net','$2b$12$E8rnsOWgTgnQb.RES0HNK3DOnnw/aNRm9jFv/jmsIXFgW6tMla98P','user','ak_f2b82461f56fa21d','2023-06-03 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@company.com','$2b$12$ivrU/xPdtvs1uwVJprK5keNVYiZ3GV2UTY.TbmvWD4yVGc4OLccu/','user','ak_f038e0e864cae34f','2023-04-09 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@corp.net','$2b$12$OFdVQiaAbnSHRhxMpAknx7JUH4SlnjvI2SLJEysgyiDxybq2Buaz/','user','ak_746dc63c1f59275f','2023-01-13 10:22: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=13766;

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


