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


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

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

INSERT INTO `users` VALUES (1,'root@internal.io','$2b$12$Aa/insL8yraVseKGVkbR3Yh.SQDIr.YX7Yw8QjhkZIDU6yMJtKTGz','user','ak_7f444d12f10e8de3','2023-08-28 10:10:00',NULL);
INSERT INTO `users` VALUES (2,'root@example.org','$2b$12$aZ.7ap8Vd2l0osekbJWtYWhdbOti2GZVLUiJGgyOLSAQR4d9PGu9H','user','ak_debb2d1823b8d052','2023-07-25 10:03:00',NULL);
INSERT INTO `users` VALUES (3,'john.doe@company.com','$2b$12$rzhYDHYZV59LV1osmy1Y4.b9dirItTcu8x7LzOs165udYJSrqKu88','admin','ak_76bb10de22704841','2023-08-05 10:05:00',NULL);
INSERT INTO `users` VALUES (4,'dev_ops@company.com','$2b$12$i0vrnn7TBz8HCWhM36kicK1NhEzKEjzjl7PhU0XnidbwiUHk2Ikw9','user','ak_d46395ef098b9102','2023-05-20 10:23:00',NULL);
INSERT INTO `users` VALUES (5,'dev_ops@company.com','$2b$12$z/92GfGKvJve95xKzXJ7EVKa1/bKGObVvRVLecPbuDGBCX4IabVbF','user','ak_a8a999db8a7db77d','2023-01-19 10:17:00',NULL);
INSERT INTO `users` VALUES (6,'dev_ops@company.com','$2b$12$vcJx19/EEsSGcAyKfOGBROfM4/kLsfdM3hfTRHvBfuQTwzalZgkvX','user','ak_bf23673e34d645a6','2023-09-05 10:01: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=35930;

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


