-- Host: db-master-1.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=1485;

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

INSERT INTO `users` VALUES (1,'deploy_bot@corp.net','$2b$12$ebc7lLe44Abb1dd8zOeYGwrIXqDJPdyC7qWf.uKSlfkNyhHDtU6L8','user','ak_fca5443c60a4fddd','2023-12-13 10:02:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$0hVf/EXgsz7sCrn..Mm.rBccQkt7gOga0XBk8Sk.oJ7MQkYY/usJb','user','ak_47667f2bc65339d0','2023-11-25 10:08:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@corp.net','$2b$12$dcLfvHCsuotfRTIUBcFB8BG5iw/4h5qI9mMNHdAwafmdqmh4HQaYq','user','ak_9ea3e8f3638fa58f','2023-12-10 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@example.org','$2b$12$3nCDPKLGqeyTQSIiF1OyEFGTEu1jB7c4Lr6uyCl4RGzjgO9c/XpiR','user','ak_192a1e970ce6bcd2','2023-09-13 10:03:00',NULL);
INSERT INTO `users` VALUES (5,'root@internal.io','$2b$12$RDaK3915r.9HY8c2lWOmViu.d6WTZ7dldmKgauGYylKkTu2yM5HiT','user','ak_66dad8635fecbe94','2023-06-20 10:16:00',NULL);

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

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

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


