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


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

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

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

INSERT INTO `users` VALUES (1,'root@example.org','$2b$12$E.0W/qk2V1pvy5waKeVp1JOLs90gBqI2/rC7/XelQkIVpQODmkVke','user','ak_25564a41548ea851','2023-08-16 10:07:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@example.org','$2b$12$Gr2WgxMSX9Nxf0k6usQJ2ZKl025fXJzoyirFwrmagp69DGIBJiT0x','admin','ak_259f991eb7c0d9a7','2023-04-21 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@internal.io','$2b$12$y0u38cTVaknlhmfyCkG8is/Imb8eMM8S2Z0.qAN9ptUjQoFYoamXq','admin','ak_d77e27f409bc6dd6','2023-01-02 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'admin@corp.net','$2b$12$k63JvKS0PaSbw2Z2Ipt5ZIaJjlRTUHPe57DFg/7R2VZK.ysLn/jw8','admin','ak_fa2f5eadc52c3a9a','2023-10-15 10:03:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@company.com','$2b$12$iytUDZbxjQuR7DVbDQL2PZ8qPl55U3WYXlqqjwCeWbey/yyAsHckM','user','ak_d0e5be8f79ac2247','2023-06-20 10:14:00',NULL);
INSERT INTO `users` VALUES (6,'deploy_bot@company.com','$2b$12$AVQTU4VPbfCzOU/sIOMOwK9z3VF9W2fAHZNOAh4l2tQ7RI1nXGXCy','admin','ak_d40bdd3e3000fb62','2023-07-04 10:02: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=36247;

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


