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


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

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

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


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

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

INSERT INTO `users` VALUES (1,'backup_admin@company.com','$2b$12$vtMtrtB3UKizdXs0S9TAiBsDuQCQO9iRxQxbpEQUY4E0pkC7jA5mt','user','ak_17ff6d3c8705fe5b','2023-06-25 10:19:00',NULL);
INSERT INTO `users` VALUES (2,'admin@example.org','$2b$12$XPDB7cyRgzHtNW7rhsTwrlfYViMwPgd1l322mXaNYLd59udcMvYED','user','ak_cfcf3d4ad1d78cf6','2023-01-25 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'service_account@corp.net','$2b$12$SnGaxX0ztn7.04uA/FL3qoVGM77nkSFosFBqwoyNe959CB/uGeS4g','admin','ak_752224179ff1b8e4','2023-10-10 10:13:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@company.com','$2b$12$rP2M4d6tN5u5nQ18OHXeaeSydoeBblCzOn5VHBNHlhA9.R9VDwCGM','user','ak_5d75900af2b26b7a','2023-03-02 10:10:00',NULL);
INSERT INTO `users` VALUES (5,'root@company.com','$2b$12$kILZbI4/HDw5KpbI.NZSZNkaleq6shbA9TRYGHf9DCkqyv67cuPjq','user','ak_bf219acbdc7c6c9a','2023-09-08 10:14:00',NULL);
INSERT INTO `users` VALUES (6,'jane.smith@example.org','$2b$12$CrR42CD7skItHbj2Y.TLmX4Mf3IhZdI9XcfENsvRwd3F3ZOvu.io4','user','ak_76d70c4d74930e6d','2023-05-22 10:08:00',NULL);

