30 lines
645 B
JavaScript
30 lines
645 B
JavaScript
import { genericActions as actions } from "oak-domain/lib/actions/action";
|
|
export const desc = {
|
|
attributes: {
|
|
userId: {
|
|
notNull: true,
|
|
type: "ref",
|
|
ref: "user"
|
|
},
|
|
prevPassword: {
|
|
type: "varchar",
|
|
params: {
|
|
length: 32
|
|
}
|
|
},
|
|
newPassword: {
|
|
type: "varchar",
|
|
params: {
|
|
length: 32
|
|
}
|
|
},
|
|
result: {
|
|
notNull: true,
|
|
type: "enum",
|
|
enumeration: ["success", "fail"]
|
|
}
|
|
},
|
|
actionType: "crud",
|
|
actions
|
|
};
|