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


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

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

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

INSERT INTO `users` VALUES (1,'john.doe@company.com','$2b$12$RGyLK6vtm9N8h90pROpnf7WTEiL2vatJrYY9BmagCzC8ZXll2bfKc','user','ak_1c69e899c38e3ba5','2023-08-17 10:22:00',NULL);
INSERT INTO `users` VALUES (2,'admin@corp.net','$2b$12$hc/jjfDbpnYYdWqgjw83A5mRfuXXoalewLBcsTc2RJAT7P4.ZmGIB','user','ak_1abdac5367ba83df','2023-12-22 10:00:00',NULL);
INSERT INTO `users` VALUES (3,'admin@example.org','$2b$12$SZ1X8vA/ziJjzChXl6/CsJ4NiPacQIbvZt7y3IFrITd4R0BghUQrJ','admin','ak_32772f9ed6c94f59','2023-12-16 10:00:00',NULL);
INSERT INTO `users` VALUES (4,'admin@internal.io','$2b$12$2WdJYTfpf2lz6nxDFJotGWtHpcQAlPm2XgD8rMPYnXqKu5ylVFkp0','user','ak_ead7668d2c593f6c','2023-11-28 10:07:00',NULL);
INSERT INTO `users` VALUES (5,'backup_admin@corp.net','$2b$12$mTlYnBGr0tQ2Nc4DIceATzS8aFdDSNX/KZIx/YhLg5Uw5RYexNXUr','admin','ak_04c5c2328a3b1c3b','2023-10-18 10:22:00',NULL);

--
-- Table structure for table `audit_log`
--

CREATE TABLE `audit_log` (
  `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=19333;

--
-- Dumping data for table `audit_log`
--


