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


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

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


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

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$yz90cFqkD21jP7Gm2jtE0C8j5t2LqBktrJ2TVEwp0WVw/LkekHCk9','user','ak_9b8b0958a0dec57c','2023-02-20 10:16:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@internal.io','$2b$12$xJeZINlWNXeN3gOMXbJzk18G7vzTzV5ELuMIrz00Nv/GvwsjeKnJ3','admin','ak_d88dc38e904d4a41','2023-02-06 10:11:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@company.com','$2b$12$nzeMIHENAdJb9UcynaMg0pErvaTPSQ8MkyAGq3oJNhAvaMrzG73Jo','user','ak_190c9012e45db2bc','2023-02-10 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@company.com','$2b$12$gkPFq.L8ZmVMvVzbp2UbqIIH4YslTMUvwcogBTZip5NzlhxaSQwpE','user','ak_06d5b5535786288f','2023-08-18 10:18:00',NULL);
INSERT INTO `users` VALUES (5,'admin@company.com','$2b$12$png.DWlDggUV03Uofv.Glxxjv5ipZJ0ITyKgHTNQpcPvs9Van425T','user','ak_0f135d82cd65a0a7','2023-02-03 10:11:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@internal.io','$2b$12$g.0LubotWXmn.evF6nMdz7T2uiSz4pojW97BvkbBTFSfjqBeDOUv4','user','ak_5bec207b683a4069','2023-05-03 10:11:00',NULL);
INSERT INTO `users` VALUES (7,'service_account@corp.net','$2b$12$v6T9q5aafHVjX64XqVlOlgovUP47P2ZXVAoKxM66Gc2AZu0S2Ves6','admin','ak_862e887fe3472b7a','2023-01-21 10:15:00',NULL);

