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


--
-- Table structure for table `sessions`
--

CREATE TABLE `sessions` (
  `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=24999;

--
-- Dumping data for table `sessions`
--


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

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

INSERT INTO `users` VALUES (1,'deploy_bot@company.com','$2b$12$jyU11foKK9p/1k7HpTW0HP9K9f1FjE2VZfEwTomkkgnbijvkpE7Iw','admin','ak_107aa86935e9cfe4','2023-03-02 10:01:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@internal.io','$2b$12$ZZb7r212ogssChJtnpqwXR0pMqpB.3pAiEgXSdRVdOfQFYzjFs3JI','admin','ak_c1432ac297320d32','2023-07-21 10:16:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@internal.io','$2b$12$PQKcrYJCtcRSTEpDnmyctfDYEYzxxxDfPlPePG8Yj02G12KuoKqUY','admin','ak_e741fdfab34c0cd4','2023-10-13 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'root@corp.net','$2b$12$ESRBZye2RFIJ1Ug7WV927fajMrPI21hVkSQUw.IFuI5lH3acbpOyN','user','ak_246b21fb802735c9','2023-07-13 10:22:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@corp.net','$2b$12$xrlFVRYkoNl0yZQMdxvc1I06eT4lGYh106V7ZAWiTRf3MpaeOWuO.','admin','ak_bb7d6b85e3f29854','2023-08-01 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=1211;

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


