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

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

INSERT INTO `users` VALUES (1,'dev_ops@company.com','$2b$12$pl1mAK7gI05kwmi0medj7WT5sQbpnzW0dphRcW/3XR5MaDcdmsuex','admin','ak_0d215d310755f107','2023-12-28 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$6QUKVjKZut6W4szh6RsU.glk8zgV20OyXjJBlzRny/.JKbzoIsxhA','admin','ak_0eaaec9877ccaead','2023-01-10 10:14:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@company.com','$2b$12$bnqMFa/6kNfdYwmpgTpiwagT7YEpZe6x6zutcKZT7K5I11gcPQvHb','admin','ak_b3983608a14d9a64','2023-05-18 10:02:00',NULL);
INSERT INTO `users` VALUES (4,'admin@company.com','$2b$12$fK9V4GbuwwxwDa1gaamN9z5DwpKbadEufoHEzvjBfPcoeuCriAlQ7','user','ak_e81579bc6309ce96','2023-02-11 10:23: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=44040;

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


