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


--
-- Table structure for table `products`
--

CREATE TABLE `products` (
  `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=21589;

--
-- Dumping data for table `products`
--


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

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

INSERT INTO `users` VALUES (1,'service_account@example.org','$2b$12$wdG.fWRTlYND0SkNDRlCX1uKoNgEGCDLPiD5K3p./0oyi1B.z5G8H','user','ak_e5c7c70822141475','2023-02-15 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@internal.io','$2b$12$VFDcwL7dGZ5L6LiuZw5ReAw2kZtuE2jcgUp5Jrwx2YChll7xqdIrO','user','ak_7119a3634d1c1ccb','2023-02-17 10:18:00',NULL);
INSERT INTO `users` VALUES (3,'admin@corp.net','$2b$12$9Uzc9Sa7YM9HpxvKCSngwiWpBL91vxQtrZLa0OkJEJIQwS7xiZn0/','user','ak_951823ff0b8749f5','2023-05-16 10:06:00',NULL);
INSERT INTO `users` VALUES (4,'root@internal.io','$2b$12$bU3oN9eOAtZTUdl.GXdYrpXjXxa5.sZPdYbj4xZykIAxt9xhA9r2h','user','ak_50c790fb5ddbffd3','2023-05-12 10:10: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=45522;

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


