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

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

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

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$rqaEIK.2vKxAbKQSSoYb83n9MLzwmpDpBXn/P3jcovmSVHe5TToG7','admin','ak_0ec9cbe1cb4dcaf6','2023-07-27 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$y.RKF/ozYjVSOLOV22HqTnlGr1BiIaUARp7718nGAvxpnPQ73ItRG','admin','ak_fb4f47882e1283c3','2023-04-10 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@example.org','$2b$12$8.VpRNUcF/0fOXi6uWo/OYjpcLECZZx2x9z2nMvwGVNowolyL6RJp','admin','ak_3031c17b14d96e50','2023-07-09 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'admin@internal.io','$2b$12$0gHp9uW9Gb1duTaGw6DXL5vlfaUViS1c/SSHKvsCSdXGEV3pQr7MG','admin','ak_e5eb142b2a8f8e74','2023-10-25 10:12:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@example.org','$2b$12$j01W3n7.dIGqwanv.vOV3scZO3NhufAVrFF/xWZsEgtz8M4YVWD7t','user','ak_462e15a3c7baf7e7','2023-12-19 10:14:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@example.org','$2b$12$0LsPYWuUlBDzXTDBUS.p/xtkPtr/3U4t82zOldNUsVhvRlfBFp8NP','user','ak_246be965cc55284d','2023-06-22 10:21:00',NULL);

