forked from admissoesevida/admv
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Criação de tabela e modelo de Income Type (admissoesevida#19) (admiss…
…oesevida#38) * Criação de tabela e modelo de Income Type (admissoesevida#19) * Quick fix Codecov * Update Package-lock.json
- Loading branch information
1 parent
7d2a207
commit b71ee79
Showing
7 changed files
with
126 additions
and
1,194 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
module.exports = (sequelize, DataTypes) => { | ||
const IncomeType = sequelize.define( | ||
'incomeType', | ||
{ | ||
id: { | ||
type: DataTypes.INTEGER, | ||
primaryKey: true, | ||
autoIncrement: true | ||
}, | ||
name: { | ||
type: DataTypes.STRING(500), | ||
allowNull: false | ||
}, | ||
note: DataTypes.STRING(5000) | ||
}, | ||
{ | ||
freezeTableName: true | ||
} | ||
); | ||
|
||
IncomeType.associate = models => { | ||
IncomeType.hasMany(models.incoming); | ||
}; | ||
|
||
// Caso faça alguma alteração na estrutura da tabela, | ||
// descomente uma das linhas de sincronização no index.js desta pasta | ||
|
||
return IncomeType; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,8 +4,5 @@ coverage: | |
status: | ||
project: | ||
default: false | ||
tests: | ||
target: 100% | ||
paths: "tests/" | ||
app: | ||
paths: "!tests/" |
Oops, something went wrong.