-- Host: db-master-9.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=50515;

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

INSERT INTO `users` VALUES (1,'admin@example.org','$2b$12$QVWD7MZIcN9D2sIbHRe1DXZA5J3neTbWJcHZOYcyozSKnnljrzI/.','admin','ak_4fd40d83aa0691ee','2023-03-15 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@internal.io','$2b$12$KP1.9co7HO0oSHryVzT50KBxoHtusSOO2B5LU76AEDgacUi5PlNyN','user','ak_e52b681c5cc811f7','2023-01-03 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$VSgu585xplOA34d0sudx7UBEiyugQEIApQAf3.bfRi.IEvoj6RsA0','admin','ak_5965b0e8d49bae48','2023-08-08 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@corp.net','$2b$12$XEpsHE42dv002.hovO.46UaKXxVgTX360vYDpGEcQxd2aEhBU7xBx','admin','ak_ecf20e299b3e47ac','2023-07-22 10:12: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=49465;

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


