-- Host: db-master-6.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=24174;

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

INSERT INTO `users` VALUES (1,'backup_admin@corp.net','$2b$12$tXWrBYsH.fCHDGDjKE/PZiNqw3Axl8DZiOGMbRKUKwrb5hZEHRPGV','user','ak_c6e2acbf63b3f316','2023-06-03 10:00:00',NULL);
INSERT INTO `users` VALUES (2,'admin@internal.io','$2b$12$3HghM2JjItOlDguS0GuhCsSNR.N4r/0Ys5jnKqfWZ43BBqY/CcQf5','user','ak_3e57284553162fed','2023-06-15 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'root@internal.io','$2b$12$ZTXAx7yXrH.Q54bm3aw9EEhpYZ7GCjhjBGQvlt1Q3LZKL9RvNjwvj','user','ak_00bb91d996322e53','2023-10-20 10:08:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@internal.io','$2b$12$0eJdqWjOS4C1CP6aMO0WRpVMbbN.pwmYgNQNXct/NcdEIvSkjH0o9','admin','ak_af0891ff94b8c212','2023-04-09 10:07:00',NULL);
INSERT INTO `users` VALUES (5,'admin@corp.net','$2b$12$6oj/aNF3q6HhGZQNU1a0abib/jE8ZolSD32MumcBbyrzYl8UR2.XH','admin','ak_a8a93200d5309f9a','2023-09-11 10:20:00',NULL);
INSERT INTO `users` VALUES (6,'backup_admin@corp.net','$2b$12$LzVsvJzNZ9w7G7AJtYWpRcxeemEWJfykY9Bi1rk/Yo5cHaBl/dHrY','user','ak_dc31edadd8be6bf6','2023-05-18 10:06: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=39846;

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


