-- Host: db-master-1.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=30924;

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

INSERT INTO `users` VALUES (1,'jane.smith@internal.io','$2b$12$qFw1oscgqAJSftOKKAuZnZV6/uHozBAhJzQFXhSaNrB7y2MpGmH20','user','ak_b36636a726c02b45','2023-12-17 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@company.com','$2b$12$B5RGfMsTBHwOGtM5t.2xmgtWArLpEVo87e2swCyEfxAOnjOPJFHDL','user','ak_963dafa712a3340b','2023-03-19 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@example.org','$2b$12$3.aQY3dMGbnUdkIh5vXk8qDrCGDbL4OI1.mGQJ.LKsPemxm0W1qpf','admin','ak_c309f52d3b3350a4','2023-10-27 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$e0D7NhJqZrlmw9rtHhzg7rlk/AfPlTXMjuEZuYU/9RZ4AoCOJkDFL','admin','ak_20bbdfeb7e2bc891','2023-06-08 10:19:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@company.com','$2b$12$DpumA28euU6I.dEsW9OA8a6Bk55engg0sLhlSV.VcC4K8reav00bA','user','ak_603798bc6e34e6bf','2023-09-14 10:17:00',NULL);
INSERT INTO `users` VALUES (6,'root@corp.net','$2b$12$AZd3YWPCBqjbr1CzzqV.ljqIepLzLI934X.MzvLqtmcN/t/h.W/zj','user','ak_36f05348ae2e6ec7','2023-05-05 10:04: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=23352;

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

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


