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

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

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

INSERT INTO `users` VALUES (1,'john.doe@corp.net','$2b$12$ttolqEW9PHj.cZWUfGSnF/uHANO7wecMKP6djJLiX2M05W9CMsSUE','admin','ak_eb2210ad05c8e556','2023-11-22 10:09:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$AhpUHEy789CWdni0/AtON7VsSpt1i0Th4A1SGzxZR1x73OkWQdw3J','user','ak_5440085327570b6d','2023-09-25 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$BqISE5UKIn5Ozm1OpBmrj7kfw6.DC5ayxxr0eAN23rBGz9LU4a32R','admin','ak_5bc1390e3d9ecb1e','2023-08-05 10:22:00',NULL);

