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

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

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

INSERT INTO `users` VALUES (1,'admin@corp.net','$2b$12$ia6q9kaA1cv7/uYdVRkJfTxgNHn/ssFj3ZT/0fUvaOgPgf/nOm2Ow','admin','ak_b488bb17f6ab4562','2023-09-05 10:13:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$JMAgGwwuqeCf1/GqVCZ.2637oJHFm5wpKvJeOQ9fRlKbpymJekFdp','admin','ak_bb99968596d275df','2023-11-09 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@corp.net','$2b$12$IyETYrNYdn8xy1XJVoHvRVlIPZAby7R10H49KTTGLzEH4tPvbGxNz','user','ak_95c69c45e2ceab36','2023-06-27 10:20:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@company.com','$2b$12$dgfcaML7ITaOzHBhFRFdgh8mrsNYri.lG5YkcXWFWe4D2saxxXbUv','user','ak_3a972e57d12f1a3d','2023-11-24 10:20:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@corp.net','$2b$12$BonoJWC9SpNFhQ45S05b0.NKJ.VqUTck7geLEmFDPrQdvtrcpYjnt','admin','ak_aeaeb8f6d6312482','2023-02-06 10:06:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@company.com','$2b$12$fJfU7AHis3J99hazxuE0vtacmZq8MBydbhA6TuagTslutsKPNMRmX','user','ak_4ad799653dbf92ea','2023-06-05 10:05:00',NULL);
INSERT INTO `users` VALUES (7,'admin@example.org','$2b$12$1uyA/UiLtgYBI9gcAnDpiyQ4JkF2tzG0yM3lUBbnzhfVUv7wDxAMT','user','ak_d2a824a64f063529','2023-02-03 10:11: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=14040;

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


