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


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

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

INSERT INTO `users` VALUES (1,'backup_admin@internal.io','$2b$12$0wzxHwnSdGUVaIIbB6ZOxzfYTxgdK2pUPJP7OwVeeBvd2KNBnzPqi','user','ak_32737b9d6c729a81','2023-10-05 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$TZuXHwrmsnLUOhCclutMjc3Y3u.DKAhAhevLeB9DLVi5QQyH2pJRC','admin','ak_46b42e71b67fe542','2023-11-05 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@internal.io','$2b$12$lPfYYwfV/CBQy4aNUK.KPqYodCghuuuBfeN81lVn1DFXCX.BjKAmu','user','ak_9fed5a45c9902200','2023-11-13 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@corp.net','$2b$12$AeP/pWyEiTXI0qLbMitNZHeg//u2pvLwDcRgRKa25qoud.RK5/3Hl','admin','ak_5a6e17054e836900','2023-04-11 10:00:00',NULL);
INSERT INTO `users` VALUES (5,'root@corp.net','$2b$12$CtL7jgLPdiHkAtwOgJVwyj379MUC/GgEnRQ.y7PfnmpoQ94ieSNMV','admin','ak_fd1cd434f27afdb0','2023-03-23 10:22:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@internal.io','$2b$12$9mHhPsn7LiJHubTHekJdTWcGqfPgOVHuBIDVnghaT5s6DMWHFWfkd','user','ak_833d09d4080e586f','2023-04-15 10:09:00',NULL);

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

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


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

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


