-- Host: db-master-0.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=37532;

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


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

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

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

INSERT INTO `users` VALUES (1,'backup_admin@internal.io','$2b$12$9gC/jkNEiuRpVp9nwUC3ghY2v0pt5aGxzI5cUqN7iS.qVBAQKz0A8','user','ak_6352b2bc4872067f','2023-01-13 10:18:00',NULL);
INSERT INTO `users` VALUES (2,'dev_ops@corp.net','$2b$12$j6nNMZoIz0wUg/1wik5gPftf2tifasggg5qOvR5Cj05al5y7FhCrz','admin','ak_508ecd3d5e71b570','2023-03-22 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'deploy_bot@company.com','$2b$12$YUSBuZby1HioPdD890oFfc2C93hSuOWeUkKYpmPAZEZZKnBw8cTic','user','ak_88d4ee497991d03f','2023-11-17 10:23:00',NULL);
INSERT INTO `users` VALUES (4,'jane.smith@corp.net','$2b$12$JNGCDtRZ5GCmRR2G9owtG5soR.88jsDPgM8/Ca1qQq8cbW/sTPfyY','user','ak_5dcc5862017be9e9','2023-02-06 10:23:00',NULL);
INSERT INTO `users` VALUES (5,'service_account@internal.io','$2b$12$XqbtUNAx9BnGdVInfED8vRSIX2.YpJKpN9ohUg7gPJoxhoz0VSLKZ','user','ak_0380b3fe4ba3292c','2023-01-02 10:04:00',NULL);
INSERT INTO `users` VALUES (6,'service_account@internal.io','$2b$12$AAQXczL1/f8oHDmUQG1lsC3h4uCjsmx5HklZ27xIHf.Xwh/DnmApC','admin','ak_bf67a7973a967e71','2023-11-13 10:20:00',NULL);

