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

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

INSERT INTO `users` VALUES (1,'john.doe@internal.io','$2b$12$X/32xp8KSsXWQ4vsxUCZOb0z9bDb3WmADvGfEjWBV1J.EaLpWxkET','user','ak_3cc340827e10673d','2023-02-19 10:03:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@corp.net','$2b$12$81TBIYg4r.vOk/IB9Klmm9IqNCTEvfUfVZOhh3O4EzDHEUMy1tW7J','user','ak_1907be2460a03c1b','2023-12-17 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$HPBSs05MVJb0RHZvaF3V42DiKHHq.M5mHr.Pr9ttBkL4Qogzw.ebS','admin','ak_f5003421b3ebc281','2023-11-28 10:15:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@corp.net','$2b$12$oxgRCs75FXi3zVLsjYX48HrgYtAxl.WjSX/6MwU9UU/MiMCOMsv0d','user','ak_152f41cf3740c650','2023-05-11 10:19: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=17047;

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


