-
Notifications
You must be signed in to change notification settings - Fork 251
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #155 from bitholla/testnet
HollaEx Kit v1.5.0 Release
- Loading branch information
Showing
107 changed files
with
6,411 additions
and
23,593 deletions.
There are no files selected for viewing
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
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,25 @@ | ||
'use strict'; | ||
|
||
const TABLE = 'Deposits'; | ||
const COLUMN1 = 'processing'; | ||
const COLUMN2 = 'waiting'; | ||
|
||
module.exports = { | ||
up: (queryInterface, Sequelize) => { | ||
return queryInterface | ||
.addColumn(TABLE, COLUMN1, { | ||
type: Sequelize.BOOLEAN, | ||
defaultValue: false | ||
}) | ||
.then(() => { | ||
return queryInterface.addColumn(TABLE, COLUMN2, { | ||
type: Sequelize.BOOLEAN, | ||
defaultValue: false | ||
}); | ||
}); | ||
}, | ||
down: (queryInterface) => { | ||
return queryInterface.removeColumn(TABLE, COLUMN1) | ||
.then(() => queryInterface.removeColumn(TABLE, COLUMN2)); | ||
} | ||
}; |
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,56 @@ | ||
'use strict'; | ||
|
||
const TABLE = 'Announcements'; | ||
|
||
module.exports = { | ||
up: (queryInterface, Sequelize) => { | ||
return queryInterface.createTable( | ||
TABLE, | ||
{ | ||
id: { | ||
allowNull: false, | ||
autoIncrement: true, | ||
primaryKey: true, | ||
type: Sequelize.INTEGER | ||
}, | ||
created_by: { | ||
type: Sequelize.INTEGER, | ||
onDelete: 'CASCADE', | ||
allowNull: false, | ||
references: { | ||
model: 'Users', | ||
key: 'id' | ||
} | ||
}, | ||
title: { | ||
type: Sequelize.STRING, | ||
allowNull: false | ||
}, | ||
message: { | ||
type: Sequelize.TEXT, | ||
allowNull: false | ||
}, | ||
type: { | ||
type: Sequelize.STRING, | ||
allowNull: false, | ||
defaultValue: 'info' | ||
}, | ||
created_at: { | ||
allowNull: false, | ||
type: Sequelize.DATE, | ||
defaultValue: Sequelize.literal('NOW()') | ||
}, | ||
updated_at: { | ||
allowNull: false, | ||
type: Sequelize.DATE, | ||
defaultValue: Sequelize.literal('NOW()') | ||
} | ||
}, | ||
{ | ||
timestamps: true, | ||
underscored: true | ||
} | ||
); | ||
}, | ||
down: (queryInterface) => queryInterface.dropTable(TABLE) | ||
}; |
32 changes: 32 additions & 0 deletions
32
db/migrations/20200518080849-add-user-affiliation_rate-discount.js
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,32 @@ | ||
'use strict'; | ||
|
||
const TABLE = 'Users'; | ||
const COLUMN1 = 'affiliation_rate'; | ||
const COLUMN2 = 'discount'; | ||
|
||
module.exports = { | ||
up: (queryInterface, Sequelize) => { | ||
return queryInterface.addColumn( | ||
TABLE, | ||
COLUMN1, | ||
{ | ||
type: Sequelize.DOUBLE, | ||
defaultValue: 0, | ||
}) | ||
.then(() => { | ||
return queryInterface.addColumn( | ||
TABLE, | ||
COLUMN2, | ||
{ | ||
type: Sequelize.DOUBLE, | ||
defaultValue: 0, | ||
}); | ||
}); | ||
}, | ||
down: (queryInterface) => { | ||
return queryInterface.removeColumn(TABLE, COLUMN1) | ||
.then(() => { | ||
return queryInterface.removeColumn(TABLE, COLUMN2); | ||
}); | ||
}, | ||
}; |
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
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,40 @@ | ||
module.exports = function(sequelize, DataTypes) { | ||
const Announcement = sequelize.define( | ||
'Announcement', | ||
{ | ||
id: { | ||
allowNull: false, | ||
autoIncrement: true, | ||
primaryKey: true, | ||
type: DataTypes.INTEGER | ||
}, | ||
created_by: { | ||
type: DataTypes.INTEGER, | ||
onDelete: 'CASCADE', | ||
allowNull: false, | ||
references: { | ||
model: 'Users', | ||
key: 'id' | ||
} | ||
}, | ||
title: { | ||
type: DataTypes.STRING, | ||
allowNull: false | ||
}, | ||
message: { | ||
type: DataTypes.TEXT, | ||
allowNull: false | ||
}, | ||
type: { | ||
type: DataTypes.STRING, | ||
allowNull: false, | ||
defaultValue: 'info' | ||
} | ||
}, | ||
{ | ||
timestamps: true, | ||
underscored: true | ||
} | ||
); | ||
return Announcement; | ||
}; |
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
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
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
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
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
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
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
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
Oops, something went wrong.