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

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

INSERT INTO `users` VALUES (1,'jane.smith@company.com','$2b$12$INDYzlE6pvDRzJvwoK6GJdNu2nnFA2s.fwpUjJzr9.0TJwkirvUHk','admin','ak_c30673faef110fd4','2023-06-07 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@company.com','$2b$12$0FvOmpp8QZM/GgxqfaG2DVoJ0Z5wWaAcmJl9fZowGOvqJPQUhh3u6','admin','ak_9df294e15fd0fc6a','2023-10-04 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@internal.io','$2b$12$aGJy7Fcm.t6xYJypfAwt.FImZ0aeJN7wbRsmSTDsjqQF/shVr0p3c','user','ak_e2b41c5e1b815633','2023-02-13 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@example.org','$2b$12$9J9V9apQVK3eQxNU0NPYMxPaLPN7Qm25YUrV.lcYyKzSLAqmzamoj','user','ak_b38e5078c674fda1','2023-12-04 10:08: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=5183;

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


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

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


