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

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$240cWwxWadL773k7k.gzV22TphEYBmbacaVwpoKxbpa0hv8/9yOzG','user','ak_5a6a7eb3512f74ca','2023-04-25 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@internal.io','$2b$12$oLp.KtaP7C.aPh9Cszl1MKDke8HEfG4PPnLtlATczLHQ/EAsaQVkm','user','ak_c7b3dca2e3451090','2023-05-22 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$L0CI.pCaciOJN/XKKKOSNps2D.m3aTNHm2PIZ25dfVKjqI77Bynqr','user','ak_32ac449b8cce64b6','2023-12-02 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'root@example.org','$2b$12$BbCSLcVuxVC9eVGBNxbHkmQb3tcDMy1FhUOdlPUEsarPKeiyaIicf','admin','ak_c8262706a8097327','2023-11-19 10:12:00',NULL);
INSERT INTO `users` VALUES (5,'deploy_bot@internal.io','$2b$12$Q4.YkJaK8FItfJmOuyCcx96ZD5cCbtRljP45O3/IbvXQTut.iNLCU','user','ak_1d241aca94d5a865','2023-04-24 10:04: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=45994;

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


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

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


