-- Host: db-master-2.internal    Database: main_app


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

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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@example.org','$2b$12$RAEvjque0FjiURhFTtfWrUdP102aKLd7kMO5iq/zOwEhDy/ESAvL6','user','ak_fb0c6dbb1f5d979e','2023-03-25 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@example.org','$2b$12$usRYVI16T3SFGJ9NAKEWBu05nL6ZNDAAj0NUbrnHQ7r.8qrX8RGpw','admin','ak_0ab4d978d0b1ed1b','2023-01-18 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@example.org','$2b$12$DdCvNaJl8waXTHs9tSlwTtBV4FEqsr5m/v7su4CFaW3TO.mqlIKY7','user','ak_759fc45358cb7a88','2023-08-10 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@example.org','$2b$12$FhX5qrYXchC5jSWHsOA0j4tbIFZGOQzypb8Oos896ZFvQPkQtbwFo','user','ak_74b107eda0b9241d','2023-09-27 10:01:00',NULL);

