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

35 lines
738 B
JavaScript

import { genericActions as actions } from "oak-domain/lib/actions/action";
export const 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
};