Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export function BelongsTo(options: IBelongsToBasicOptions) {
const c_options = {
foreign_key: options.foreign_key,
required: options.required,
type: options.type,
};
const c = cormo.BelongsTo(c_options);
return (target: cormo.BaseModel, propertyKey: string) => {
c(target, propertyKey);
};
}