-- ====================================================================
-- Oracle Object Types for File Management
-- ====================================================================
-- Purpose: Define object types for filename handling in file management system
-- ====================================================================

-- Drop existing types if they exist
DROP TYPE CT_MRDS.T_FILENAMES;
DROP TYPE CT_MRDS.T_FILENAME;

-- Create filename object type
CREATE OR REPLACE TYPE CT_MRDS.T_FILENAME AS OBJECT (
    FILENAME  VARCHAR2(200),
    PATHNAME  VARCHAR2(800),
    YEAR      VARCHAR2(4),
    MONTH     VARCHAR2(2)
);
/

-- Create collection of filename objects
CREATE TYPE CT_MRDS.T_FILENAMES IS TABLE OF T_FILENAME;
/