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


--
-- Table structure for table `products`
--

CREATE TABLE `products` (
  `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=35821;

--
-- Dumping data for table `products`
--


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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@example.org','$2b$12$pHCae4yzuvy1V1ir9cI.QroYR1jyg12DieiUrcO1hvQDDwyYR./xC','admin','ak_c2daf97d1ae10cfb','2023-05-05 10:05:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@example.org','$2b$12$GPr72x9UFS2Y9p2A/Q3wnDjt8ds0uGk4Jrk7Gtx4QpOYkZXHJKC86','user','ak_1eb23b839962dadc','2023-04-24 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@company.com','$2b$12$/Qiof63dL4VXw0y5UBJqTCeaFb7/4RbJ6q6o1tdvKCzAkbfLfn.sc','user','ak_6f280cc4015d0b5d','2023-09-15 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'admin@example.org','$2b$12$060VkoAwN/cIAapU8f/uYsxxaUweH/1lin9m9lvplNdzzWgF9S.PI','admin','ak_3eac9a5956278cb0','2023-12-10 10:23:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@example.org','$2b$12$j5qp0BL6Un/XPKDmvqQ/RxzYlrmPecAFgwbkBYstvoTbu5Mkj12t7','user','ak_f4d7dac901841949','2023-03-07 10:03:00',NULL);

