-- Host: db-master-1.internal    Database: webapp_db


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

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


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

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


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

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

INSERT INTO `users` VALUES (1,'backup_admin@company.com','$2b$12$fGsSZXiy4At6jFJ.E957GLd54uAJ0uEvmimNFaO9LFSGKRlOMGdMG','user','ak_b4ee48c6e4ef0d96','2023-09-28 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$/e2VFfw9LKYc7Z5BpQ/KqREqBIO8ORCKVR.xCm4UQKL9j7.UAFt.a','user','ak_3e8aa10f85bfa495','2023-09-19 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$yOwsC9lzJU6RMR52LWA/XgjzloW7Layan7tkJa0txrVSihxpBbnO9','user','ak_6aed11d40a0b9548','2023-08-05 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'admin@corp.net','$2b$12$DKNHN1hHPH4rkdc9s7GRKGoppKLtz1EUktnW1/NLt.suUEKjGtcsA','user','ak_8943c9fd7fd88369','2023-12-03 10:13:00',NULL);

