CREATE TABLE IF NOT EXISTS admin_invites (
	code VARCHAR(36) PRIMARY KEY NOT NULL DEFAULT (UUID()),
	createdAt TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
	maxUses INTEGER NOT NULL DEFAULT 1,
	uses INTEGER NOT NULL DEFAULT 0,
	expiresAt TIMESTAMP,
	createdBy INTEGER,
	FOREIGN KEY (createdBy) REFERENCES users(id) ON DELETE SET NULL
);