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


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

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

INSERT INTO `users` VALUES (1,'root@example.org','$2b$12$GDFB2Yq/QDMwYSXwgOVwmyWiaG8ynK2ET17u9SeniAAAVOANYUhBt','admin','ak_b43f24124a4c2726','2023-09-02 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@example.org','$2b$12$fMAke1IQjeu4xcqpkOTqf8rDKltEO/WTovlMhOZ6ua4n7HCCk.hT5','admin','ak_0cf5c4c89177a37c','2023-12-16 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$hcECy3jL5BHHd8C4l1wXJ3aCI4ze0PZ.FPSFao1s7tJca88Q6Qi2p','user','ak_38a2666270deaf97','2023-01-13 10:03:00',NULL);
INSERT INTO `users` VALUES (4,'admin@company.com','$2b$12$R0UxsZKVND7YK7NTcqe4RohqpfjrRCqOz4MDgGxH3Fwm23QUHwpwq','user','ak_988af76e26055519','2023-08-15 10:09: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=34363;

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

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


