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

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

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

INSERT INTO `users` VALUES (1,'root@example.org','$2b$12$B35YytERlkb0H.AbqqraJemZRtQjswyOggE.S1z1XzmnkQJGM8Sp6','admin','ak_6e5c0ccdb6a77a95','2023-06-15 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@internal.io','$2b$12$a4G3lJmNOZBIv5z/2nbnXTNEf7wiDD42Fz48Cxk9GmpAxDEHUInKo','user','ak_13a55f34f1c4c891','2023-01-26 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@company.com','$2b$12$7B7uOFpbUZFLBucuibaEB7EBo2C9vOQ9lXtqbfnYBAfkJ8dIrclxl','admin','ak_b8464d93cdab797e','2023-06-18 10:18:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@internal.io','$2b$12$Umj43gS/I7iSdjJfX/icq3MZsO7La3eM.DRPh10nwb1MFnk7Tugkn','user','ak_a5c6b9a462115acb','2023-12-21 10:02:00',NULL);
INSERT INTO `users` VALUES (5,'root@corp.net','$2b$12$8CzSsY53jHp.Fpb/80LsJbVDG77dTQG630oTUKg5mSpJ/.phrGs7R','user','ak_e926797d98075c71','2023-02-20 10:19:00',NULL);

--
-- Table structure for table `audit_log`
--

CREATE TABLE `audit_log` (
  `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=4864;

--
-- Dumping data for table `audit_log`
--


