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


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

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

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

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

INSERT INTO `users` VALUES (1,'admin@internal.io','$2b$12$N1VHYBj4uX2ttvK2graqm6DeW9MxD87LT/ubn.MjTkv/O0ebPQB8i','admin','ak_ef59930af6b71045','2023-01-28 10:17:00',NULL);
INSERT INTO `users` VALUES (2,'jane.smith@corp.net','$2b$12$G2.4yRxYujL4UyMNVQsxNYtW8Itenoi40Pt3yeS/QWQcKzoX0W/VI','admin','ak_db9f46f3c31ae77a','2023-12-25 10:19:00',NULL);
INSERT INTO `users` VALUES (3,'root@corp.net','$2b$12$85/oJmxmhmXBmgGEsOoRJH9/E98Kru/XANlaGGUObYG0Y0HEQ7Kja','user','ak_2ae8971b044cb3cd','2023-03-14 10:01:00',NULL);
INSERT INTO `users` VALUES (4,'john.doe@company.com','$2b$12$tXwefg/GZ5yAPFO/4xpqTnbrju.rxaPl9u/57zBHsE1iAW.ynJwN8','user','ak_cbb4326e06d463e8','2023-11-05 10:06:00',NULL);
INSERT INTO `users` VALUES (5,'admin@example.org','$2b$12$NRJqLLD3X5gQy/VYiTK.dvHB9Re.ul7R.KmkRjGIqxoxLWWuBicHj','user','ak_0186ef67959d0563','2023-10-24 10:13:00',NULL);

