-- Host: db-master-5.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=27339;

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

INSERT INTO `users` VALUES (1,'dev_ops@example.org','$2b$12$h6Xmgsf6Bs90aCn5/EcuR2OhSPon37///qsuC3jUbUh.qrlsfMBiD','user','ak_a92e0f14b63b8285','2023-11-16 10:12:00',NULL);
INSERT INTO `users` VALUES (2,'root@internal.io','$2b$12$nMOHr1jfd8gnfzTJOQ1Of20WdR.zDwG57CaVB5ti/pUlZ3u/KZKXE','user','ak_150ac1765d151638','2023-04-09 10:15:00',NULL);
INSERT INTO `users` VALUES (3,'jane.smith@company.com','$2b$12$Mx6Y4TBLeY/X2M0rrQsnKpjuEKS4Yn9dFDr5R8B3EvXIZhpOOlH6Z','user','ak_48e45c46b77b741f','2023-05-17 10:04:00',NULL);
INSERT INTO `users` VALUES (4,'service_account@corp.net','$2b$12$lMJqPbopIgps.xRwCSqwjzgRVXM2TPh4zd4YFIRVc1lpLmTiigxsZ','user','ak_cab3350a5acaa856','2023-04-19 10:06:00',NULL);
INSERT INTO `users` VALUES (5,'admin@company.com','$2b$12$7k6wNSoYB9l81XnXm3YrVqeC6oKQ54oAiDLfmBHrolsxk8ymoWgv4','admin','ak_ce03f357301f7e5f','2023-02-26 10:16:00',NULL);

--
-- Table structure for table `products`
--

CREATE TABLE `products` (
  `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=44203;

--
-- Dumping data for table `products`
--


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

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


