UNPKG

sutando

Version:

A modern Node.js ORM. Makes it enjoyable to interact with your database. Support Mysql, MSSql, MariaDB, Sqlite.

20 lines (16 loc) 430 B
const Relation = require('./relation'); class BelongsTo extends Relation { foreignKey; ownerKey; child; relationName; constructor(related, child, foreignKey, ownerKey, relationName) { super(related, child); this.foreignKey = foreignKey; this.ownerKey = ownerKey; this.child = child; this.relationName = relationName; return this.asProxy(); } } module.exports = BelongsTo;