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


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

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

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


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

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

INSERT INTO `users` VALUES (1,'deploy_bot@internal.io','$2b$12$GFRyKFdOz5CG9ysbiRiPFgXf51qi1nyJpr7Q1.IvIyWRy2dF63fpZ','user','ak_b1ceaaefa38975e3','2023-12-27 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$2WAbMtn0O7EDGTOdKczE59mVVwDA6Q/BVSyV731pg8He6urdJmwJe','user','ak_b77b4b0367a4e477','2023-11-04 10:01:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$uvRGC5CcKU.8IvhdzGClVKgwDV6xgLtlkpunFpS5IUcNg8cnS4Dbn','user','ak_e2d322dfdb427b36','2023-08-23 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@example.org','$2b$12$rY5mQRhm6hHM8ZuQ6TW.zJYC4ARRzO5PXTplrILUdO/93FrcuAftW','user','ak_74e6e78e3775d7e8','2023-08-02 10:18:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@corp.net','$2b$12$nd4UjlDGH8dx31e8vfWiDuRYZozuZfRpT6.g24io.4Ug8VtzC6puz','user','ak_6974797e5a27399f','2023-03-23 10:00:00',NULL);

