think-sequelize2
TypeScript icon, indicating that this package has built-in type declarations

1.3.3 • Public • Published

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: []
    }
  }
}

Readme

Keywords

none

Package Sidebar

Install

npm i think-sequelize2

Weekly Downloads

1

Version

1.3.3

License

none

Unpacked Size

13.8 kB

Total Files

13

Last publish

Collaborators

  • king-ui