2
1
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2023-12-13 21:00:40 +01:00
Ghost/core/server/models/client-trusted-domain.js
Sebastian Gierlinger 52e35a282b Add table columns for OAuth
closes #4174
- added trusted domains
- removed unique constraint from secret
2015-09-02 13:39:22 +01:00

17 lines
495 B
JavaScript

var ghostBookshelf = require('./base'),
ClientTrustedDomain,
ClientTrustedDomains;
ClientTrustedDomain = ghostBookshelf.Model.extend({
tableName: 'client_trusted_domains'
});
ClientTrustedDomains = ghostBookshelf.Collection.extend({
model: ClientTrustedDomain
});
module.exports = {
ClientTrustedDomain: ghostBookshelf.model('ClientTrustedDomain', ClientTrustedDomain),
ClientTrustedDomains: ghostBookshelf.collection('ClientTrustedDomains', ClientTrustedDomains)
};