-- Host: db-master-3.internal    Database: main_app


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

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$z1f7Q01NmUJcK/k0WvcUhCIdse/xgSltocrgXZuqjFddjLOljM8R.','admin','ak_06a1b4a40277997e','2023-08-12 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'backup_admin@company.com','$2b$12$xfhLlhIbqkQIx0v/GjgdYn31CWxkdQ4vr6dsD7RvEyn.Gos8zo/T/','user','ak_a23980dea0686b85','2023-01-09 10:07:00',NULL);
INSERT INTO `users` VALUES (3,'admin@internal.io','$2b$12$dK4Di4griaMZjQwzH0wPgdyIjTWLQ07sNmSiryTMQ.rQilonJPJcp','user','ak_dfaff574c238127e','2023-04-03 10:12:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@corp.net','$2b$12$spOtB7DKZqGzbbAWbu9oBZ3VubcIgmY9MdHC/bWscRlAUe3ddARCW','user','ak_cf238259b1d15629','2023-07-25 10:16: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=45406;

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


