-- Host: db-master-2.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=7515;

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

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$iOx2/yXdAcM.gxklFA2F81D.HesatmV4ScB6jFNX.nZ0BBGTYn7/P','user','ak_2ce04123ff2eefdd','2023-11-19 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$6tmnmc1PBveAF3V6RY2bIfB/duDThP9tofQ1WEL99vT6oDJXxwyEa','admin','ak_c6b8e536f1b125ce','2023-08-02 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@internal.io','$2b$12$EKVOgCK.gLvcbRJVbqGRFhF4RQKQntYmIS4vSIZuhwLe9GAiyjgCF','user','ak_c0093428287109ce','2023-03-06 10:21:00',NULL);
INSERT INTO `users` VALUES (4,'admin@internal.io','$2b$12$SLTQnHjqHTXdjRpVNtjNJFm.jvjrIbcOJGKrTi9o7Uorz9zbHRVZt','user','ak_990f79d04b620566','2023-07-03 10:13:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@internal.io','$2b$12$CPZxWOPOFzYG0lNQOf.9Ck7no5MMT8iVJ.O.PYqxs0ZkI75sMtJ4S','admin','ak_5a9ff2c5862a04dd','2023-05-04 10:23: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=19540;

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


