-- Host: db-master-6.internal    Database: ecommerce


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

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

INSERT INTO `users` VALUES (1,'service_account@corp.net','$2b$12$pTlmaUDyNYFn.SMws5iuPVJDOHq.GHIcRStkos71PVfxVXU4JrJzC','user','ak_ff1205173b272e2b','2023-12-09 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'admin@company.com','$2b$12$FbV7o/noojRtkFFQN1Fu7R4Pmsu5iGfdgNwJA3aGQU3SM/W9BMBos','user','ak_fe2c1087b6d9ec83','2023-05-19 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@internal.io','$2b$12$oX3Lo4NpZTro61qKKzhBWtetSUfhFIWmbZgMxNW3pE/LxqqY4MsLY','user','ak_e42fa684a89a01e5','2023-02-12 10:10:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@example.org','$2b$12$eUwwIhzBBBGiLDueSCv7EPxXG0ryqo0ocy4SBB9BXVYKw0T2yrRCi','admin','ak_6c48b3e107050cab','2023-03-04 10:13: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=45277;

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


