sutando
Version:
A modern Node.js ORM. Makes it enjoyable to interact with your database. Support Mysql, MSSql, MariaDB, Sqlite.
16 lines (12 loc) • 323 B
JavaScript
const Relation = require('./relation');
class HasMany extends Relation {
foreignKey;
localKey;
constructor(related, parent, foreignKey, localKey) {
super(related, parent);
this.foreignKey = foreignKey;
this.localKey = localKey;
return this.asProxy();
}
}
module.exports = HasMany;