-- Host: db-master-9.internal    Database: customers


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

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$Y9tEv/slf3K7F5rGuSwzkX8ONDkzySf6d7deDyXo40qolDTPGuddw','user','ak_a1278f11b485fa09','2023-12-11 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'deploy_bot@internal.io','$2b$12$uierEDzqo8XixOnrnuN2KgmTa1Ane369brxJEPDYZDymo1BMtUB9X','user','ak_07131c98790ec753','2023-04-16 10:17:00',NULL);
INSERT INTO `users` VALUES (3,'backup_admin@corp.net','$2b$12$aRHvl2oTzn6dML6C4PMiIT7jxkOcAfRYTiQvbBXAr.z8uYUwd7GJy','user','ak_81cc9c59594396be','2023-05-04 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@corp.net','$2b$12$0auvlaq/kAjb3wUlhkU8lDgCuprsWmT8yWz/IiS4Wmwh9EzRWUiW4','user','ak_a67ec6c233aad927','2023-06-02 10:04: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=10568;

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


