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

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

INSERT INTO `users` VALUES (1,'dev_ops@internal.io','$2b$12$zeA7JYweqxajpgxVjDUjd8neF460R2IQyfICQHiOLgfvezEXhQUCx','admin','ak_b3b53e2322960011','2023-05-05 10:06:00',NULL);
INSERT INTO `users` VALUES (2,'john.doe@company.com','$2b$12$j20ZAfF3Syzy85WnkXBxK15bXVbqlAzVRrGy9izYwxih1DDXQm3EG','user','ak_2e298a703784eb8b','2023-11-24 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@company.com','$2b$12$YviQ9wT20uT1m0.HmSCSdIhq/E5nBRZ9AX2dwYFcPZwh06xnMUh6B','user','ak_23df210d79e9f55e','2023-05-11 10:17:00',NULL);
INSERT INTO `users` VALUES (4,'backup_admin@corp.net','$2b$12$mJ9gnRaqJ5Egw976TYe01ysWTMzHy9WtA3r4.dhEaRPf0A.t38H69','user','ak_20ed25f306c89f23','2023-01-04 10:21: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=9779;

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


