-- Host: db-master-4.internal    Database: production_db


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

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

INSERT INTO `users` VALUES (1,'service_account@example.org','$2b$12$0A9BnGtaoYSiJzjZ/6eX3YC34gv/4nqjQQt8x1iMW9VJLSNcpR6Ft','admin','ak_ca3cd33aec1ba22c','2023-01-24 10:15:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$ufJPGY9T9supFdRRInFnC6RqruBZFnOyOBPIAtE47mX2ScjzIAo3P','admin','ak_c05195b3aec00e82','2023-08-24 10:23:00',NULL);
INSERT INTO `users` VALUES (3,'root@example.org','$2b$12$A7gYRkFbU2vLto54.AyCA1hIUoN/0keRRcUhE5LnbA4b.4mtgYZ96','user','ak_ffa1c6b4f23299fa','2023-10-12 10:14:00',NULL);
INSERT INTO `users` VALUES (4,'admin@example.org','$2b$12$Xw5rGMYlrpXwIm9ZicbTHXQXCnXFnLLrCdqpgL8zkh/sILz7ZkX9S','user','ak_20a2c62aba9f41e2','2023-12-05 10:11:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@company.com','$2b$12$lIZmLdxdBdr2YMiReYB4OVYUu3NfVbmgmnzNDORj7AYCu89EhrH01','user','ak_1348e88910f5897d','2023-02-14 10:10: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=26748;

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


