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


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

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

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

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

INSERT INTO `users` VALUES (1,'service_account@internal.io','$2b$12$kf2Acv.4weqHxsDk04RGD/iuZXR/kvR8S0JV5c2QEZEl3sN//UdC7','admin','ak_b0775be112d7dc95','2023-12-22 10:20:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@company.com','$2b$12$FDomyc/uFB2Aq7ODXXAJnf5PmcMCwBGalHvBkwdeezGAf5Hv9xwkw','admin','ak_76d50039c49887fc','2023-12-06 10:04:00',NULL);
INSERT INTO `users` VALUES (3,'dev_ops@example.org','$2b$12$5Q7SDL8alOv1iAI62Rf/9Zuw.u0MJyDntfjylEOU/GRUg3ZhvQg6M','user','ak_4e49c01def2fc6e5','2023-04-09 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@internal.io','$2b$12$rYV/Kw16xz4p.7IaKHq8O9bAQxOvmr0agKTYXv.fv.KZcwAH4kjvN','admin','ak_129ca1b503573b1a','2023-10-02 10:22:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@corp.net','$2b$12$WO/clwYW8IBtcRBH.jhFqhLgn5mbbvuXRMqMgQ7oMH2gbCcHpv6my','user','ak_5c32cf3529989615','2023-08-15 10:14:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@corp.net','$2b$12$V6dPMIvSRxZM849VlLFhJdpWpHbkJxXwk0bNq2bd3BpVLmzSvvtPQ','user','ak_57e58aac8adcde01','2023-12-15 10:10:00',NULL);

