#ifndef REFERENCE_H
#define REFERENCE_H

#include "field.h"
#include "table.h"
#include <QMetaType>
class BaseAdaptor;
class Reference : public Field
{
public:
    Reference();
    Reference( const QString &fieldName, const Field &target,
               DAL::ConstraintAction onDelete = DAL::None, DAL::ConstraintAction onUpdate = DAL::None );
    Reference( const QString &fieldName, const Table &target,
               DAL::ConstraintAction onDelete = DAL::None, DAL::ConstraintAction onUpdate = DAL::None );
    Field target() const;
};
Q_DECLARE_METATYPE(Reference)
#endif // REFERENCE_H

