oak-general-business/lib/oak-app-domain/OauthUserAuthorizations/Storage.js

29 lines
661 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.desc = void 0;
const action_1 = require("oak-domain/lib/actions/action");
exports.desc = {
attributes: {
userId: {
notNull: true,
type: "ref",
ref: "user"
},
application: {
notNull: true,
type: "object"
},
authorizedAt: {
notNull: true,
type: "datetime"
},
tokenId: {
notNull: true,
type: "ref",
ref: "oauthTokens"
}
},
actionType: "crud",
actions: action_1.genericActions
};