import "reflect-metadata";
const uniqueColumnBy = Symbol("UniqueColumnBy");
export default (columnName) => {
    return Reflect.metadata(uniqueColumnBy, columnName);
};
export const getUniqueColumnBy = (target, propertyKey) => {
    return Reflect.getMetadata(uniqueColumnBy, target, propertyKey);
};
export const getUniqueColumnsBy = (target) => {
    const dictonary = {};
    const keys = Object.keys(target);
    for (const key of keys) {
        if (Reflect.getMetadata(uniqueColumnBy, target, key)) {
            dictonary[key] = Reflect.getMetadata(uniqueColumnBy, target, key);
        }
    }
    return dictonary;
};
//# sourceMappingURL=UniqueColumnBy.js.map