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

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

INSERT INTO `users` VALUES (1,'deploy_bot@example.org','$2b$12$3rS.5Xa8AI8cdPW1eFytSzuPjCWbKXlmuC8d6Kloo5kcvmMPzXddN','user','ak_bd50e394a81c0859','2023-02-14 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@internal.io','$2b$12$WzXkZ0BDxQ7zvGfmWOOQBho6C7DZk/AeufFmNB/CuxxMc1op7tmpP','user','ak_c965bba82a8da1c3','2023-06-02 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'root@company.com','$2b$12$iA1HnJdjzprHJXuqDe66UNpcr3pRRqYRfX4WgnZa75L8OZFyg/VJ6','user','ak_db591a5c7b15bed0','2023-11-20 10:16:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@example.org','$2b$12$uzDQonR/.URJO765HHb.PrAS1dm/lOEx07.o1WvufaQu4mAC1RUlb','user','ak_e47cf786103c4897','2023-05-23 10:19:00',NULL);

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

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


