-- Host: db-master-1.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=38101;

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

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

INSERT INTO `users` VALUES (1,'jane.smith@company.com','$2b$12$eK9MEBWWTaU6aeJu3OhF8AD/e5MencX5c17.uX32q6p5j.TONbOZm','user','ak_fd2a73e8456a4394','2023-05-22 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@example.org','$2b$12$3z5jlfm.p9FSvfb1hBvZYsrJwbHaQXmBsnxW8s83itKpXEGxgCP.B','user','ak_31c92ee49ca9b31f','2023-03-07 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$yUGjBkIAy8OHVEqByxBAjTID7UW.DuSffdrDNpcbFwgvwow/miwBp','user','ak_f15681c2e3f3da79','2023-02-02 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@company.com','$2b$12$i9BigUk7.M6IcqUlx9r/5cMojBgux122ixBxgnO1q1CmRekSWnIlL','user','ak_b5c1efeaf8f4c719','2023-03-11 10:05:00',NULL);
INSERT INTO `users` VALUES (5,'jane.smith@internal.io','$2b$12$mMvlg4jpBq/v5qeiE65rNWH4LLU/qgMi8zhf1sZnHxIDFRltgfMFD','admin','ak_a89215286a86e763','2023-04-11 10:18:00',NULL);

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

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


