{"id":21101269,"url":"https://github.com/manuelgil/vscode-nestjs-sequelize-snippets","last_synced_at":"2025-12-28T17:48:03.184Z","repository":{"id":213606511,"uuid":"733743851","full_name":"ManuelGil/vscode-nestjs-sequelize-snippets","owner":"ManuelGil","description":"This extension for Visual Studio Code adds snippets for NestJS Framework and Sequelize ORM.","archived":false,"fork":false,"pushed_at":"2024-01-26T19:41:17.000Z","size":1147,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-21T02:42:45.006Z","etag":null,"topics":["nest","nestjs","sequelize","sequelize-orm","sequelize-typescript","vscode","vscode-extension","vscode-snippets"],"latest_commit_sha":null,"homepage":"https://marketplace.visualstudio.com/items?itemName=imgildev.vscode-nestjs-sequelize-snippets","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ManuelGil.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null},"funding":{"github":["ManuelGil"],"ko_fi":"ManuelGil","custom":["https://paypal.me/ManuelFGil","https://www.buymeacoffee.com/ManuelGil"]}},"created_at":"2023-12-20T02:56:41.000Z","updated_at":"2023-12-20T03:06:15.000Z","dependencies_parsed_at":"2023-12-21T22:28:34.102Z","dependency_job_id":"5e783e5f-cc6c-4e86-9773-bd125b7a35cf","html_url":"https://github.com/ManuelGil/vscode-nestjs-sequelize-snippets","commit_stats":null,"previous_names":["manuelgil/vscode-nestjs-sequelize-snippets"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ManuelGil%2Fvscode-nestjs-sequelize-snippets","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ManuelGil%2Fvscode-nestjs-sequelize-snippets/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ManuelGil%2Fvscode-nestjs-sequelize-snippets/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ManuelGil%2Fvscode-nestjs-sequelize-snippets/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ManuelGil","download_url":"https://codeload.github.com/ManuelGil/vscode-nestjs-sequelize-snippets/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243544647,"owners_count":20308169,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["nest","nestjs","sequelize","sequelize-orm","sequelize-typescript","vscode","vscode-extension","vscode-snippets"],"created_at":"2024-11-19T23:44:01.663Z","updated_at":"2025-12-28T17:48:03.175Z","avatar_url":"https://github.com/ManuelGil.png","language":null,"funding_links":["https://github.com/sponsors/ManuelGil","https://ko-fi.com/ManuelGil","https://paypal.me/ManuelFGil","https://www.buymeacoffee.com/ManuelGil"],"categories":[],"sub_categories":[],"readme":"# NestJS Sequelize Snippets\n\n[![Visual Studio Marketplace Version](https://img.shields.io/visual-studio-marketplace/v/imgildev.vscode-nestjs-sequelize-snippets?style=for-the-badge\u0026label=VS%20Marketplace\u0026logo=visual-studio-code)](https://marketplace.visualstudio.com/items?itemName=imgildev.vscode-nestjs-sequelize-snippets)\n[![Visual Studio Marketplace Installs](https://img.shields.io/visual-studio-marketplace/i/imgildev.vscode-nestjs-sequelize-snippets?style=for-the-badge\u0026logo=visual-studio-code)](https://marketplace.visualstudio.com/items?itemName=imgildev.vscode-nestjs-sequelize-snippets)\n[![Visual Studio Marketplace Downloads](https://img.shields.io/visual-studio-marketplace/d/imgildev.vscode-nestjs-sequelize-snippets?style=for-the-badge\u0026logo=visual-studio-code)](https://marketplace.visualstudio.com/items?itemName=imgildev.vscode-nestjs-sequelize-snippets)\n[![Visual Studio Marketplace Rating](https://img.shields.io/visual-studio-marketplace/r/imgildev.vscode-nestjs-sequelize-snippets?style=for-the-badge\u0026logo=visual-studio-code)](https://marketplace.visualstudio.com/items?itemName=imgildev.vscode-nestjs-sequelize-snippets\u0026ssr=false#review-details)\n[![GitHub Repo stars](https://img.shields.io/github/stars/ManuelGil/vscode-nestjs-sequelize-snippets?style=for-the-badge\u0026logo=github)](https://github.com/ManuelGil/vscode-nestjs-sequelize-snippets)\n[![GitHub license](https://img.shields.io/github/license/ManuelGil/vscode-nestjs-sequelize-snippets?style=for-the-badge\u0026logo=github)](https://github.com/ManuelGil/vscode-nestjs-sequelize-snippets/blob/main/LICENSE)\n\n\u003e Handy snippets for `sequelize-typescript` and NestJS — models, decorators, associations, hooks and boilerplate to speed up development.\n\n## Overview\n\nThis Visual Studio Code extension provides concise, typed snippets for `sequelize-typescript` used within NestJS projects. Use the snippets to quickly scaffold models, columns, associations, indexes, lifecycle hooks, and provider code — keeping your code consistent and saving repetitive typing.\n\n## Requirements\n\n- Visual Studio Code 1.46.0 or later\n\n## Installation\n\n1. Open Visual Studio Code.\n2. Open the **Extensions** view (`Ctrl+Shift+X` / `⌘+Shift+X`).\n3. Search for **NestJS Sequelize Snippets** or install directly from the [Marketplace page](https://marketplace.visualstudio.com/items?itemName=imgildev.vscode-nestjs-sequelize-snippets).\n4. Click **Install** and reload the editor if prompted.\n\n## Usage\n\nType part of a snippet name and press `Tab` or `Enter` to expand it.\n\n### Common snippets\n\n| Snippet                                     | Purpose                                                                              |\n| ------------------------------------------- | ------------------------------------------------------------------------------------ |\n| `ns_sequelize_deco_created_at`              | `@CreatedAt public declare createdAt: Date;`                                         |\n| `ns_sequelize_deco_updated_at`              | `@UpdatedAt public declare updatedAt: Date;`                                         |\n| `ns_sequelize_deco_deleted_at`              | `@DeletedAt public declare deletedAt: Date;`                                         |\n| `ns_sequelize_deco_table`                   | `@Table({ tableName, timestamps, paranoid }) export class ... extends Model { ... }` |\n| `ns_sequelize_deco_auto_increment`          | `@AutoIncrement`                                                                     |\n| `ns_sequelize_deco_primary_key`             | `@PrimaryKey`                                                                        |\n| `ns_sequelize_deco_primary_key_auto_column` | `@PrimaryKey @AutoIncrement @Column(DataType.INTEGER) declare id: number;`           |\n| `ns_sequelize_deco_index`                   | `@Index({ name, unique, using })`                                                    |\n| `ns_sequelize_deco_column`                  | `@Column({ type: DataType.STRING, ... })`                                            |\n| `ns_sequelize_deco_allow_null`              | `@AllowNull()`                                                                       |\n| `ns_sequelize_deco_unique`                  | `@Unique()`                                                                          |\n| `ns_sequelize_deco_default`                 | `@Default()`                                                                         |\n| `ns_sequelize_deco_comment`                 | `@Comment()`                                                                         |\n| `ns_sequelize_deco_before_create`           | `@BeforeCreate public static ...() { ... }`                                          |\n| `ns_sequelize_deco_before_update`           | `@BeforeUpdate public static ...() { ... }`                                          |\n| `ns_sequelize_deco_after_create`            | `@AfterCreate public static ...() { ... }`                                           |\n| `ns_sequelize_deco_after_update`            | `@AfterUpdate public static ...() { ... }`                                           |\n| `ns_sequelize_deco_has_many`                | `@HasMany(() =\u003e Model)`                                                              |\n| `ns_sequelize_deco_has_one`                 | `@HasOne(() =\u003e Model)`                                                               |\n| `ns_sequelize_deco_foreign_key`             | `@ForeignKey(() =\u003e Model)`                                                           |\n| `ns_sequelize_belongs_to`                   | `@BelongsTo(() =\u003e Model)`                                                            |\n| `ns_sequelize_belongs_to_many`              | `@BelongsToMany(() =\u003e Model, () =\u003e ThroughModel)`                                    |\n\n## Contributing\n\nContributions to the NestJS Sequelize Snippets are welcome and appreciated. To contribute:\n\n1. Fork the [GitHub repository](https://github.com/ManuelGil/vscode-nestjs-sequelize-snippets).\n2. Create a new branch for your feature or fix:\n\n   ```bash\n   git checkout -b feature/your-feature\n   ```\n\n3. Make your changes, commit them, and push to your fork.\n4. Submit a Pull Request targeting the `main` branch.\n\nBefore contributing, please review the [Contribution Guidelines](https://github.com/ManuelGil/vscode-nestjs-sequelize-snippets/blob/main/CONTRIBUTING.md) for coding standards, testing, and commit message conventions. If you encounter a bug or wish to request a new feature, please open an Issue.\n\n## Changelog\n\nFor a complete list of changes, see the [CHANGELOG.md](https://github.com/ManuelGil/vscode-nestjs-sequelize-snippets/blob/main/CHANGELOG.md).\n\n## Authors\n\n- **Manuel Gil** - _Owner_ - [@ManuelGil](https://github.com/ManuelGil)\n\nFor a complete list of contributors, please refer to the [contributors](https://github.com/ManuelGil/vscode-nestjs-sequelize-snippets/contributors) page.\n\n## Follow Me\n\n- **GitHub**: [![GitHub followers](https://img.shields.io/github/followers/ManuelGil?style=for-the-badge\\\u0026logo=github)](https://github.com/ManuelGil)\n- **X (formerly Twitter)**: [![X Follow](https://img.shields.io/twitter/follow/imgildev?style=for-the-badge\\\u0026logo=x)](https://twitter.com/imgildev)\n\n## Other Extensions\n\n- **[Auto Barrel](https://marketplace.visualstudio.com/items?itemName=imgildev.vscode-auto-barrel)**\n  Automatically generates and maintains barrel (`index.ts`) files for your TypeScript projects.\n\n- **[Angular File Generator](https://marketplace.visualstudio.com/items?itemName=imgildev.vscode-angular-generator)**\n  Generates boilerplate and navigates your Angular (9→20+) project from within the editor, with commands for components, services, directives, modules, pipes, guards, reactive snippets, and JSON2TS transformations.\n\n- **[NestJS File Generator](https://marketplace.visualstudio.com/items?itemName=imgildev.vscode-nestjs-generator)**\n  Simplifies creation of controllers, services, modules, and more for NestJS projects, with custom commands and Swagger snippets.\n\n- **[NestJS Snippets](https://marketplace.visualstudio.com/items?itemName=imgildev.vscode-nestjs-snippets-extension)**\n  Ready-to-use code patterns for creating controllers, services, modules, DTOs, filters, interceptors, and more in NestJS.\n\n- **[T3 Stack / NextJS / ReactJS File Generator](https://marketplace.visualstudio.com/items?itemName=imgildev.vscode-nextjs-generator)**\n  Automates file creation (components, pages, hooks, API routes, etc.) in T3 Stack (Next.js, React) projects and can start your dev server from VSCode.\n\n- **[Drizzle ORM Snippets](https://marketplace.visualstudio.com/items?itemName=imgildev.vscode-drizzle-snippets)**\n  Collection of code snippets to speed up Drizzle ORM usage, defines schemas, migrations, and common database operations in TypeScript/JavaScript.\n\n- **[CodeIgniter 4 Spark](https://marketplace.visualstudio.com/items?itemName=imgildev.vscode-codeigniter4-spark)**\n  Scaffolds controllers, models, migrations, libraries, and CLI commands in CodeIgniter 4 projects using Spark, directly from the editor.\n\n- **[CodeIgniter 4 Snippets](https://marketplace.visualstudio.com/items?itemName=imgildev.vscode-codeigniter4-snippets)**\n  Snippets for accelerating development with CodeIgniter 4, including controllers, models, validations, and more.\n\n- **[CodeIgniter 4 Shield Snippets](https://marketplace.visualstudio.com/items?itemName=imgildev.vscode-codeigniter4-shield-snippets)**\n  Snippets tailored to CodeIgniter 4 Shield for faster authentication and security-related code.\n\n- **[Mustache Template Engine - Snippets \u0026 Autocomplete](https://marketplace.visualstudio.com/items?itemName=imgildev.vscode-mustache-snippets)**\n  Snippets and autocomplete support for Mustache templates, making HTML templating faster and more reliable.\n\n## Recommended Browser Extension\n\nFor developers who work with `.vsix` files for offline installations or distribution, the complementary [**One-Click VSIX**](https://chromewebstore.google.com/detail/imojppdbcecfpeafjagncfplelddhigc?utm_source=item-share-cb) extension is recommended, available for both Chrome and Firefox.\n\n\u003e **One-Click VSIX** integrates a direct \"Download Extension\" button into each VSCode Marketplace page, ensuring the file is saved with the `.vsix` extension, even if the server provides a `.zip` archive. This simplifies the process of installing or sharing extensions offline by eliminating the need for manual file renaming.\n\n- [Get One-Click VSIX for Chrome \u0026rarr;](https://chromewebstore.google.com/detail/imojppdbcecfpeafjagncfplelddhigc?utm_source=item-share-cb)\n- [Get One-Click VSIX for Firefox \u0026rarr;](https://addons.mozilla.org/es-ES/firefox/addon/one-click-vsix/)\n\n## License\n\nThis project is licensed under the **MIT License**. See the [LICENSE](https://github.com/ManuelGil/vscode-nestjs-sequelize-snippets/blob/main/LICENSE) file for full details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmanuelgil%2Fvscode-nestjs-sequelize-snippets","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmanuelgil%2Fvscode-nestjs-sequelize-snippets","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmanuelgil%2Fvscode-nestjs-sequelize-snippets/lists"}