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


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

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


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

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

INSERT INTO `users` VALUES (1,'admin@example.org','$2b$12$WfCPkQVSTEIPQvBQwIfTHlTE2gj8ouj.QZKlNY1apL/Jkc5GuC9Z8','user','ak_a296594a35447f28','2023-04-23 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@company.com','$2b$12$0KjOdjSnVyCBcNKZtKPW73oHtZWgB1vHRGUKJQX3C6V3eYHUFeBs1','user','ak_5a6c26807722448c','2023-08-13 10:05:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@company.com','$2b$12$3OIiLKbcxI9ZQ5s0e5Hh1L.cJb83umB1S.YE3bV4aMKjnBVHDICIJ','admin','ak_22e76b03166c8afe','2023-06-11 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@corp.net','$2b$12$g1J62lwc7FcZrEmkEOBpyTZNJnfpmm0DK/S3qacvk171THGBSVrwF','admin','ak_89405eb63270849f','2023-04-08 10:23:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@corp.net','$2b$12$w.10oWooOzklqtS3GaFGwVIEGMueQtAs7OoVNsZWMAsQZLQ7yVrtO','user','ak_fa58007c46410301','2023-06-10 10:12:00',NULL);

--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `id` bigint unsigned NOT NULL AUTO_INCREMENT,
  `name` varchar(255) DEFAULT NULL,
  `data` text,
  `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=35643;

--
-- Dumping data for table `sessions`
--


