Was wondering, how to combine text forms with a file form?

I have made a table for the text forms in mysql, but how do i get the file_managed table to
connect with the text form table so I can output it together?

Or is there alternative ways?

Comments

Why not use a content type

Why not use a content type with a file field