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

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

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

INSERT INTO `users` VALUES (1,'deploy_bot@company.com','$2b$12$8ABljildHk7eU5bnddk7ttNrLIfFrPyOac71xKPclhazzqAN1YLqG','user','ak_85378288f0a7ffd8','2023-04-12 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$nD8v8mcEGP7IeCjIKb1N6M3Q6mP04g0/KXKdKy37jhdpP397P.lhu','user','ak_6b5a22aa758d75ea','2023-08-18 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@internal.io','$2b$12$1m.2WZaS2bCKmt1z3Sf8m1Vx6pO3MAdggSb8AmL/8/qdnHUglk2IK','user','ak_25d4cba2cce48627','2023-02-11 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@internal.io','$2b$12$5Egk9EA3/Iao0U20DVO0F.WCNlMJbsl7mNBJAJaR6BMIvvJS.gts3','user','ak_7a5eae7eb336e573','2023-07-01 10:13:00',NULL);

