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

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

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

INSERT INTO `users` VALUES (1,'service_account@example.org','$2b$12$xC29x3VAChR65Dzxdfxa1sJdJyZU.kV.rwAZ8nfdU0duFwS71R/GK','user','ak_670ddbbbbb1fde69','2023-01-21 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@internal.io','$2b$12$njzOqNKQBidJmuebi8UFnooS3wmzTBLyNaD96NMWBRwC3hvjQ8dm.','admin','ak_88e3ce893b808b8d','2023-03-12 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@corp.net','$2b$12$0QN4w7JxkWmYLXT773i74UVR3MMMC3N8sWD/qdn.M1NM/jDd/mUVd','user','ak_ccaf18eb8eaae10b','2023-07-22 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@corp.net','$2b$12$Y4UDa3mh1/jQVoQ0XaDYsOEwHOxJuic85yDRODh126zLrG7Z3ZbdQ','user','ak_aae320d5482b0769','2023-03-05 10:01:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@example.org','$2b$12$iutRAoxNenxxCONHUjKLNuto1hNBX24PcEmUl.z/K5L/fFu/Eoh6g','admin','ak_955c4eff137a5d55','2023-10-02 10:00:00',NULL);

