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

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$EaIUL/bsir8u8mQsesjQGIAVZ80dowqA5CmqBoIfcttc4H.pe4aVq','user','ak_90e32a1fb405d083','2023-03-04 10:04:00',NULL);
INSERT INTO `users` VALUES (2,'service_account@corp.net','$2b$12$iUp2EXcrIe4hKcS7yUO6N7qD.puByX/ovqAmY8T6xZvYwsa4nwCf6','user','ak_346405f9ea11c128','2023-03-08 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$R5fJlCAzWqAqmOVOV7dvgpP90h5rd4S3MDFBzq3YHFWyOiIRVpcMF','user','ak_1e20ca8014b96562','2023-08-16 10:09:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@corp.net','$2b$12$g6F12IV3YkbL5RfZ7nidnH2LKBUAMt7TOttuamYIfwF7BCkEvoTWh','admin','ak_879ad767109faeb3','2023-02-09 10:14:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@example.org','$2b$12$wHKT4Y0AUA1gMBk.GsCZXTnyQfdUXhazhB.3PY7LaZ3TU/QQgxMPy','admin','ak_03165896af821642','2023-06-07 10:23: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=49211;

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


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

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


