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

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

INSERT INTO `users` VALUES (1,'root@corp.net','$2b$12$hYmiBZTsSASWMprwMoe/6OCWM/zNqThRMPg/GzEAsVna9Kq8695xq','user','ak_9b076e9ac7ffb553','2023-09-10 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$pDiUubuHUkbNyB9yDruPLdMsAS51XSydeKNpZyUoI6Jgc4KoI0nJJ','user','ak_3a4432d786ddd97d','2023-09-26 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@corp.net','$2b$12$AQG41T8VZpz0UGd.zXd6pMhxTMrSPxxzh80FmCRQbCMA0Afwx92z0','user','ak_015f051b69f86662','2023-08-25 10:22:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@company.com','$2b$12$9dtFqKiAlTryOVe4i4FJPZSTCMLasLQE2NV80wZIWOpeaM1et1qdH','user','ak_622ad537d09919a8','2023-04-22 10:08: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=43754;

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


