open-index/open-npm huggingface dataset:
npm package: @nodutilus/clasyquelize
Description: Classifying wrapper for Sequelize ORM
Latest version: 0.0.2

# clasyquelize

Classifying wrapper for [Sequelize ORM](https://sequelize.org/)

#### Example

```js
import { Clasyquelize, ClasyModel, DataTypes } from '@nodutilus/clasyquelize'

const sequelize = new Clasyquelize('sqlite:database.sqlite')


class Entity extends ClasyModel {

  static id = this.attribute({ type: DataTypes.BIGINT, primaryKey: true, autoIncrement: true })
  static uuid = this.attribute({ type: DataTypes.STRING, allowNull: false }).index({ unique: true })

  static async findByUUID(uuid, options = {}) {
    const entity = await this.findOne(Object.assign(options, { where: { uuid } }))

    return entity
  }

}


class User extends Entity {

  static username = DataTypes.STRING
  static iUsername = this.index({ fields: ['username'] })

}


class Company extends Entity {

  static companyname = DataTypes.STRING
  static iCompanyname = this.index({ fields: ['companyname'] })

}


class Book extends Entity {

  static title = DataTypes.STRING
  static author = User
  static chiefEditor = User
  static publisher = Company

}


sequelize.attachModel(User, Company, Book)
```
npm package: @nodutilus/eslint-config
Description: Alias for @nodutilus/project-config/eslint
Latest version: 2.0.0

# nodutilus project config [![][npmbadge]][npm] [![][badge]][actions]

ESLint shareable configuration

**Alias for [@nodutilus/project-config/eslint][npm]**

**`!WARNING!` Don't use without @nodutilus/project-config**

Используется для поддержки простого подключения модуля через `extends` по правилам eslint,
т.к. для `scoped` пакетов обязательно название модуля `eslint-config`.

Подробнее: [ESLint - Shareable Configs](https://eslint.org/docs/developer-guide/shareable-configs)

[npmbadge]: https://img.shields.io/npm/v/@nodutilus/project-config

[npm]: https://www.npmjs.com/package/@nodutilus/project-config

[badge]: https://github.com/nodutilus/project-config/actions/workflows/main.yml/badge.svg?branch=main&event=push

[actions]: https://github.com/nodutilus/project-config/actions