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

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$MaOqhXBSwjMaJEOKxQ95.4Oi0skiy8l9lRZxOJ08mWBpMwizThWPl','user','ak_123ba8e1255b79d6','2023-03-08 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$iu42Dqq0njijSLx8l7T31Is126IUVej89UO9SLJi4TvC6fRf7qt5Z','admin','ak_04e9a1125d9b913f','2023-12-08 10:10:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$NvfAYDzbMFKQnX5bEQUKfxBLiBiaaBfdXQAFxJm/99Kk5iYyB8ew4','user','ak_8e2fabd2cc03f69f','2023-10-26 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$5bz7Jbne0/skURUrWWv2IgUEULH6iop.bptn2TASFEUULoXvKC4nf','admin','ak_1252d0940670c07f','2023-03-27 10:07: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=9749;

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


--
-- Table structure for table `orders`
--

CREATE TABLE `orders` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `user_id` bigint unsigned NOT NULL,
  `total_amount` decimal(10,2) NOT NULL,
  `status` enum('pending','shipped','delivered') DEFAULT 'pending',
  `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=33895;

--
-- Dumping data for table `orders`
--


