CREATE TABLE public.registrations_true
(
    result_id integer NOT NULL DEFAULT nextval('registrations_true_result_id_seq'::regclass),
    tutor_id bigint,
    student_id bigint,
    level_id integer,
    result_status enrollment_status,
    detalles character varying(255),
    processed_at valid_timestamp DEFAULT now(),
    course_id integer,
    CONSTRAINT registrations_true_course_id_fkey FOREIGN KEY (course_id) REFERENCES courses(course_id),
    CONSTRAINT registrations_true_student_id_fkey FOREIGN KEY (student_id) REFERENCES partners(partner_id),
    CONSTRAINT registrations_true_tutor_id_fkey FOREIGN KEY (tutor_id) REFERENCES tutor_profiles(partner_id),
    CONSTRAINT registrations_true_pkey PRIMARY KEY (result_id)
);
