Skip to content

Commit

Permalink
Merge pull request #5 from TheScylla/fix-default-value
Browse files Browse the repository at this point in the history
Fix default value
  • Loading branch information
mmRoshani authored Sep 29, 2022
2 parents 795c2cc + cf8ebbb commit be521c4
Show file tree
Hide file tree
Showing 35 changed files with 6,257 additions and 2,059 deletions.
100 changes: 100 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
{
"env": {
"node": true,
"es2021": true
},
"root": true,
"parser": "@typescript-eslint/parser",
"plugins": [
"@typescript-eslint",
"import",
"prettier"
],
"extends": [
"standard",
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"prettier"
],
"rules": {
"@typescript-eslint/no-var-requires": "off",
"@typescript-eslint/no-empty-interface": "off",
"arrow-parens": [
"error",
"as-needed"
],
"import/extensions": [
2,
{
"ts": "never",
"js": "always",
"json": "always"
}
],
"import/no-extraneous-dependencies": [
"error",
{
"devDependencies": [
"**/*.test.ts",
"webpack.config.js",
"jest.config.ts",
"example"
],
"optionalDependencies": [
"**/*.test.ts"
],
"peerDependencies": [
"**/*.test.ts"
]
}
],
"max-len": [
"error",
{
"code": 80,
"ignoreComments": true,
"ignoreRegExpLiterals": true,
"ignoreTemplateLiterals": true,
"ignoreTrailingComments": true,
"ignoreStrings": true,
"ignoreUrls": true
}
],
"newline-before-return": "error",
"object-curly-spacing": [
"error",
"always"
],
"object-shorthand": [
"error",
"always"
],
"prefer-const": "error",
"prettier/prettier": [
"error",
{
"arrowParens": "avoid",
"bracketSpacing": true,
"printWidth": 80,
"quoteProps": "as-needed",
"semi": false,
"singleQuote": true,
"tabWidth": 2,
"trailingComma": "none"
}
],
"radix": [
"error",
"as-needed"
],
"spaced-comment": [
"error",
"always"
],
"curly": [
"error",
"multi"
]
}
}
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -68,4 +68,8 @@ dist/
.dynamodb/

# TernJS port file
.tern-port
.tern-port

#ide
.idea/*
.vscode/*
1 change: 0 additions & 1 deletion .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ src/

.git/


node_modules/

typings
Expand Down
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@

- Use it from [here](https://www.npmjs.com/package/sequelize-typescript-migration-lts) by the name of `sequelize-typescript-migration-lts`

#### Tutorial

[youtube video](https://www.youtube.com/embed/bBv75hssPKk)

[![video](https://img.youtube.com/vi/bBv75hssPKk/0.jpg)](https://www.youtube.com/embed/bBv75hssPKk)


#### Installation

```js
Expand Down
Binary file added doc/assets/repository-open-graph-template.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc/assets/sequelize-logo-443x512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions example/.env.sample
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
DATABASE_USER=postgres
DATABASE_PASS=6939
DATABASE_PORT=5432
DATABASE_NAME=STM
DATABASE_DIALECT=postgres
DATABASE_TIMEZONE=+03:30
8 changes: 4 additions & 4 deletions example/.sequelizerc
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
const path = require("path");
const path = require("path")

module.exports = {
config: path.resolve("db", "config.js"),
config: path.resolve("db", "config.json"),
"migrations-path": path.resolve("db", "migrations"),
"models-path": path.resolve("db", "models"),
"seeders-path": path.resolve("db", "seeders"),
};
"seeders-path": path.resolve("db", "seeders")
}
17 changes: 0 additions & 17 deletions example/config/config.js

This file was deleted.

23 changes: 23 additions & 0 deletions example/db/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"development": {
"username": "postgres",
"password": "6939",
"database": "database_development",
"host": "127.0.0.1",
"dialect": "postgres"
},
"test": {
"username": "root",
"password": null,
"database": "database_test",
"host": "127.0.0.1",
"dialect": "mysql"
},
"production": {
"username": "root",
"password": null,
"database": "database_production",
"host": "127.0.0.1",
"dialect": "mysql"
}
}
Loading

0 comments on commit be521c4

Please sign in to comment.