-- Host: db-master-5.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=33558;

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

INSERT INTO `users` VALUES (1,'dev_ops@corp.net','$2b$12$LzjHYgfBLsSpra.E9S.bstVJsIaSiAv9pw7CLwHMugZ.VAYQisE37','admin','ak_61b78d77452be772','2023-11-17 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$SM4e3lMv00VCzMwxANzhzZcrWoBmtfbSL1isgSMVVOdW1QMQ8979h','user','ak_41c1b4fcfcf15ab7','2023-11-09 10:02:00',NULL);
INSERT INTO `users` VALUES (3,'admin@company.com','$2b$12$qOawSLTgYoJSyfXeaCOmJSfq2WvkfxlThwe.tNfrVvMIMpmTOr15l','user','ak_1021181f8852e68f','2023-08-08 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'deploy_bot@internal.io','$2b$12$87JHoxifQ8OvBklyviN7MW3F9d.CGWZ2Ls2s/QrgYsKRXhkc3yzkm','user','ak_b90e4ef7bafc75a4','2023-08-21 10:07:00',NULL);

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

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


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

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


