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

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

INSERT INTO `users` VALUES (1,'root@company.com','$2b$12$mgMOMKP8qdCIJYscVEY9IbrZV2AyJZegFvFrdtCNTiiDwvCI.AkTY','admin','ak_16ea661e184921f1','2023-07-07 10:21:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@corp.net','$2b$12$ffKLl4skeTwEIzi04xJRQ9ZAhE0HPWBVPfM941hx0nxeykjLk5k9I','admin','ak_2741b13d7d406a96','2023-06-11 10:21:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@corp.net','$2b$12$h02yBC6ZpGrmDsiImYFeI4CaJos04VJQIsQGo5G.Z0xkEVN/KXWWU','user','ak_2d8f75ef46d42a8e','2023-10-13 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'root@example.org','$2b$12$zf5SYOOV3BOavQ6hGIQks/o55pgKYjONCylCOeL1dAYX5SWGqNJW4','admin','ak_e1c8a1bc7ef80bd6','2023-08-02 10:22:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@internal.io','$2b$12$AZV7kDSHGDbc8hy3r5kIN3512ipLKr9/hdlKEUdftaYYdfzImO2sr','admin','ak_093ac96f3936cea0','2023-07-19 10:10:00',NULL);
INSERT INTO `users` VALUES (6,'admin@example.org','$2b$12$/DOxVaGDRMP/wgoa1eHYm3su5S/ocqbCANxKHehhxUD2vWOdmT.mw','user','ak_18fc44b2cc73ccfd','2023-08-05 10:16: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=16626;

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


