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

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

INSERT INTO `users` VALUES (1,'dev_ops@company.com','$2b$12$JOLk1/JlbAZeCh8ls0HeOgcD7ouK9hhJJQ1hhMGS5rNZDDok8NG2m','admin','ak_1ddcbfc1531596e9','2023-02-25 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@internal.io','$2b$12$pzJMdskpOF0K3qgN3brsqcjqPiwWTxjNTguyyxMqrRoKnCW7wrVVh','user','ak_127048ee85e1ab00','2023-05-05 10:09:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$fJRCvJcX1d.oW9ri/rC0HiBeLrtg4t6.C6T7xntIOXJT6X8pSFVjZ','admin','ak_304b4e126f318155','2023-08-10 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@internal.io','$2b$12$0X9wmSUwaw9y/e4b0McAcFBS8rd7XDnE7K1W523Isb9kbbJtk3Rs.','user','ak_5e0ddc4090eba915','2023-06-18 10:14:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@example.org','$2b$12$sc3y3AfNrUl4oNA.Qv3nj58Y6A5J2KRc3Mv7jM8I6KLWM2AznyuWk','user','ak_cc517086db523942','2023-03-14 10:18:00',NULL);

--
-- Table structure for table `products`
--

CREATE TABLE `products` (
  `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=30796;

--
-- Dumping data for table `products`
--


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

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


