-- Host: db-master-6.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=32957;

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

INSERT INTO `users` VALUES (1,'john.doe@example.org','$2b$12$0o.SQlj9bHwR8Lsp9LVEOVUChIk2D4d/wO.W9OQuG.1fpzo9yhUxy','user','ak_eceadf0e2790d408','2023-06-19 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$0VlJ8fujNHL4/UeHsqKee67/.JDi2s.CUnwxYUQYQxPrQd9LC1UEg','admin','ak_5b4df5fc1948598f','2023-04-20 10:22:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$amlf8LoLmu42KYA0CCFNAcjTVOw0FAGviYK40VD/3ZPhWW2vaDdtG','admin','ak_5aad26e73509c655','2023-04-22 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'root@example.org','$2b$12$hcdFfZXmcZO9vh71Ij0RIJW6TDls2WOu54.Anu7xqxL55iRql2nYN','admin','ak_038e0f75def002a4','2023-03-17 10:07:00',NULL);
INSERT INTO `users` VALUES (5,'admin@corp.net','$2b$12$NGj888JnEapUjkVzR5YlnAdTNUe//DO4xVbt.IxZFkoguKNw.1Vra','user','ak_44f7f64e35879640','2023-12-05 10:09: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=1197;

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


