-- Host: db-master-8.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=47019;

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

INSERT INTO `users` VALUES (1,'deploy_bot@corp.net','$2b$12$D6qjp4bh5CLj9MPUA7M2Fhfmr3gjcMcmLG/Vs0oGy5x0dGf0sbSe8','user','ak_30098efc8d4e7011','2023-10-10 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$XDI6IBSSneCiVx5AT0N8mvA/QA4vdtfqx9v7Mi0OGx8T9CXF5YkdX','user','ak_5b13a2947e173eda','2023-12-22 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@corp.net','$2b$12$bon2wd.Bm3t4hiR5PYE1LgpxHHsKU/nQMsAcOnh159x.HxVJIj25c','user','ak_60ed774a18aa6680','2023-04-24 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'admin@example.org','$2b$12$ONXWzMm2K/mLI8/p.WNmqa6GTcpRphTayZHiEgHL7Mge2DVnz4B2X','admin','ak_c20930d4bd7be921','2023-03-20 10:16: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=8929;

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

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


