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


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

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

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

INSERT INTO `users` VALUES (1,'admin@corp.net','$2b$12$Q.jLeyadV5cWYXk4wCOH9jfUkj250MKJjo2vPmIBrWyhFne2Bxccb','user','ak_a387fd30ebaf651e','2023-05-09 10:11:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$9xdHpoPWrEXdjHrzfxNK4CKud6QPJ.8Y9d4GpfrEohfHxurutJa78','user','ak_8836ba218a37cd72','2023-02-22 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@internal.io','$2b$12$Mfp2e3MEuiLV1UHl82V4ISKznmRDI8t2JrW/B6ST9oJTPZqj8Qumc','user','ak_1ef50faebaff9fb9','2023-12-25 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@internal.io','$2b$12$imr1Cwp0DLFUluZg2S5XfkEzFmZn/4qUWCrC7q8wDmjkdSHQqV4JE','admin','ak_e6051319ecd928f3','2023-01-08 10:19:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@internal.io','$2b$12$fkOa5Sv.FfryUNYmZXbsqBDb/q6GRJuXlzQzB9woM52p/bFJqGsoa','user','ak_74ab2653c6e039f3','2023-10-19 10:16:00',NULL);
INSERT INTO `users` VALUES (6,'root@example.org','$2b$12$Bu640SAGZBX97DcP0FqIxFcMtd1.tlKv7VgKKhRUsEjaG8O4OgDn8','user','ak_e13378780f3ced07','2023-07-02 10:06:00',NULL);
INSERT INTO `users` VALUES (7,'deploy_bot@corp.net','$2b$12$RN0JHHO0Xdr.gEQAbd8wt30Yrm6Mdqbie6ANXz0jQANPq4P2/tfcT','user','ak_b3f54cbeb4d96330','2023-01-02 10:01:00',NULL);

