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

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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$4U71Kg5CiOm10G0REIEGpaFZAoPFKknPwUvlXtUHsMFntPvlgp1Nd','user','ak_316b631768f1deb3','2023-04-19 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@example.org','$2b$12$TEkR9abHIvZfNxEby4GleVEBKuCUOpZ/fl4JwwKdgBvMfeoDxNJP7','admin','ak_6524ca539ea49399','2023-08-25 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@company.com','$2b$12$LSoYdsJT45Rl8t7V53jiRs1BtC8gEo9AWob03Xm77j.JbOP2.84S9','admin','ak_16fb808fc99a4a38','2023-04-06 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@corp.net','$2b$12$RbimFNNhCq2xYJAf11Js1KrWVYpjyk8rcpPmSGsfdqxcYs/t0fVic','user','ak_71f67de92b2fb9da','2023-12-17 10:15:00',NULL);

