1.3.3 • Published 6 years ago

think-sequelize2 v1.3.3

Weekly downloads
14
License
-
Repository
github
Last release
6 years ago

Sequelize for ThinkJS

forked from https://github.com/thinkjs/think-sequelize

Differences:
Fix TypeScript types;

Rename property schema to define;

// src/model/user.ts
import {think} from 'thinkjs';
import {Define} from 'think-sequelize2';

module.exports = class extends think.Sequel {
  get define():Define {
    return {
      attributes: {},
      options: {},
      relations: []
    }
  }
}