-- Host: db-master-7.internal    Database: ecommerce


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

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

INSERT INTO `users` VALUES (1,'deploy_bot@example.org','$2b$12$8gbO.zDyy7XkrdhxpdlUiSjP66vXGG34HeozPmcDV0ZEPJA5YkuG0','user','ak_8584c0309803202d','2023-06-05 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$df6nZ6VFpGVA5VYeSCQkwtrDAr2zSDAgRpl78VBPIBpY.FZJsqHDw','user','ak_6e0c231ce06f3896','2023-04-22 10:20:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@company.com','$2b$12$0XIKecKfrux/X9cH/pQfY3o90eZ5UCpW/Pit9yndqDgBPS4qsIfiH','user','ak_52686025344ebddf','2023-11-04 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@example.org','$2b$12$SRITDeTgYzhc9v4aIfn1enjAivVfCzKO7n333QMJWuOstAL5UQOoZ','user','ak_5c19141e45bae80e','2023-05-27 10:16:00',NULL);
INSERT INTO `users` VALUES (5,'john.doe@company.com','$2b$12$coGb1LWzJZy5TAnGer480WUkgXnjnw0nsLpwnQkuch.1EAUb9q5la','user','ak_7bef8a7c06070d1b','2023-09-02 10:11:00',NULL);
INSERT INTO `users` VALUES (6,'john.doe@corp.net','$2b$12$8MH9YhwTSuIHYE0rfgKhSUyzgcYJFfLrnU7GrU23i/5NE0nzLyhRy','user','ak_a15de0bb375e493f','2023-10-24 10:07: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=44414;

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


