-- Host: db-master-8.internal    Database: main_app


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

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


--
-- Table structure for table `payments`
--

CREATE TABLE `payments` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `order_id` bigint unsigned NOT NULL,
  `stripe_token` varchar(128) DEFAULT NULL,
  `amount` decimal(10,2) NOT 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=36811;

--
-- Dumping data for table `payments`
--


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

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

INSERT INTO `users` VALUES (1,'admin@corp.net','$2b$12$SG9jUM49UcyBg71zuFO.lBF/iH.6mWQlsofwWkE/DiGmfcgZMyZnk','admin','ak_94d3e33e5a8e0d34','2023-05-25 10:08:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$1PxFu0GIzuzCKZdFvhDn2WuvBuukXTNEAROVazyfHU2JFBK7xq4e1','admin','ak_205f74431a87a065','2023-06-16 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$oCymgSfkaDn2QPRweB7h1s.3gXN3DTK0VwT8VRc.Vb3AN8FTYGIrC','admin','ak_75cf002421fb2a41','2023-08-10 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@corp.net','$2b$12$mIDyR/zzyXodI6aShuxfsnkAR7JKTR5P3i/O9AlK11NT94kMv2OUs','admin','ak_fd257014debea055','2023-03-04 10:23:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@internal.io','$2b$12$srn74WviyLSVxX9DLhwhTE2ZofvyN279mZ3JMjbGtnGXcpYgvkiOa','admin','ak_0f44f0609a530409','2023-07-19 10:17:00',NULL);

