CREATE TABLE TramitadorRecibo (
    Id int IDENTITY(1,1) NOT NULL,
    RecSer smallint NOT NULL,
    RecNumID int NOT NULL,
    UseID smallint NOT NULL,
    EmpID smallint NOT NULL,
    FechaCreacion datetime NOT NULL,
    CONSTRAINT PK_TramitadorRecibo PRIMARY KEY (Id),
    CONSTRAINT FK_TramitadorRecibo_Recibos FOREIGN KEY (EmpID, RecSer, RecNumID) REFERENCES Recibos(EmpID, RecSer, RecNumID) ON DELETE CASCADE,
    CONSTRAINT FK_TramitadorRecibo_UsuParCor FOREIGN KEY (EmpID, UseID) REFERENCES UsuParCor(EmpID, UseID) ON DELETE CASCADE,
    CONSTRAINT UC_TramitadorRecibo UNIQUE (RecSer, RecNumID, UseID, EmpID)
);