def create_media_entry(conn, model_id=None, model_type='document',
    collection_name='default', name=None, file_name=None, mime_type=
    'application/pdf', disk='media', size=None, manipulations='[]',
    custom_properties='[]', order_column=None, created_at=None, updated_at=None
    ):
    """
    Creates an entry in the database table 'media'.
    :param conn: Connection to database
    :param model_id: ID
    :param model_type: "car" or "document"
    :param collection_name: Type of the document
    :param name: ÜP or RP or something like this
    :param file_name: Name of uploaded file
    :param mime_type: "application/pdf"
    :param disk: "media"
    :param size: Filesize in byte
    :param manipulations: empty json
    :param custom_properties: empty json
    :param order_column: wtf?
    :param created_at: NOW!
    :param updated_at: Now or nothing
    :return:
    """
    query = (
        """INSERT INTO media
            (model_id, model_type, collection_name, name, file_name, mime_type, disk, size, manipulations,
             custom_properties, order_column, created_at, updated_at)
    VALUES ({}, '{}', '{}', '{}', '{}', '{}', '{}', {}, '{}', '{}', {}, '{}', '{}')
    """
        .format(model_id, model_type, collection_name, name, file_name,
        mime_type, disk, size, manipulations, custom_properties,
        order_column, created_at, updated_at))
    cur = conn.cursor()
    cur.execute(query)
    conn.commit()
    cur.close()
