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

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

INSERT INTO `users` VALUES (1,'dev_ops@company.com','$2b$12$1l1gzDIL16Hhjj9N6STC7S3NoPFiyLdPR9wZ8KQmBXHx7dWtdIpBc','admin','ak_723ab19792ff71bf','2023-06-01 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@example.org','$2b$12$hv8U0.hwCnjpRv6dlE2QFOym.4bZb3CGI/OEOXe.algJDC5feLFKm','user','ak_66ace7ad39a6e44c','2023-12-27 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@corp.net','$2b$12$dD7f2qoxMpbyxA91thyriPIzYl9aTNiW/rwuNkW.P5TPZKAJbkWZo','admin','ak_4f2ecdae512dc88d','2023-12-03 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@corp.net','$2b$12$KzV90THjnkS9eYzCUgDnRfmfUCPEHfu8yaxAWVK2bCZNjm9Mrek.S','admin','ak_2c903691f89b0e8a','2023-10-06 10:22:00',NULL);

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

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

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


