-- Host: db-master-6.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=39370;

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

INSERT INTO `users` VALUES (1,'service_account@example.org','$2b$12$8kmA3X4NG5lxN6LXXSTGPgz7LSWwXq37Lb8Vy2/GzUujBKcqj/SM1','user','ak_68a4dd466da42f4e','2023-09-04 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@example.org','$2b$12$lFVw7JP2YUlNaVdKn/7tW5txY7JhjBOki/ym.EB5i.AGyDSqWgHXs','user','ak_9b542d3a294d12e2','2023-11-14 10:12:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@example.org','$2b$12$DZ7v2HQPerIQA4qaSRGZ.2uVlZjTHBrN.XwcBKUh7JTndXzaxf8NU','user','ak_07b522bd54043c15','2023-05-23 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@internal.io','$2b$12$Z9h4o03pczhzJrAyXgp3InG2zXJ04b8LDnmtjuL4VYsV1O/k9HgBA','user','ak_a000933bf569f39c','2023-11-04 10:10:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@example.org','$2b$12$xQ39yAhRmbf4Y/zyuJ0YPvIzhCA6W8RnKSa2P7Zy0rUO8JsVjYscd','user','ak_a5729807c0a3ad85','2023-12-23 10:09: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=25595;

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

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


