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

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

INSERT INTO `users` VALUES (1,'backup_admin@company.com','$2b$12$vUWcP4yRRxb/A.YYzY5k.PV0V7EC8nLJisZzzPLweZH.T0.eR6Dy6','admin','ak_c863fce730e5f335','2023-04-09 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'root@company.com','$2b$12$5PkY3c6/OktaLCQ5q17Fc8AwIymggDpoDXVgbPIzqsjCuFsCimE.B','admin','ak_4bd5fb529db67dec','2023-10-16 10:06:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@company.com','$2b$12$NHjaOHLUFcGTpPekzvCiQYJ8TqZ2xKtyeCb9QXDHI7IEBUAiyYHJe','user','ak_a386a5a66ab16f95','2023-10-02 10:19:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@example.org','$2b$12$3jdd0v5LIAGdIBedzOisvKfdudAAtNxKylJthOtP7f7hRSQuLZuFl','admin','ak_49b59cc5075eb7de','2023-03-13 10:23: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=24183;

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


