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

38 lines
842 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: {
state: {
notNull: true,
type: "varchar",
params: {
length: 32
}
},
code: {
type: "varchar",
params: {
length: 128
}
},
providerId: {
notNull: true,
type: "ref",
ref: "oauthProviderConfig"
},
userId: {
notNull: true,
type: "ref",
ref: "user"
},
// 使用时间
usedAt: {
type: "datetime"
}
},
actionType: "crud",
actions: action_1.genericActions
};