oak-pay-business/lib/oak-app-domain/Livestream/Storage.js

83 lines
1.8 KiB
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: {
title: {
notNull: true,
type: "varchar",
params: {
length: 32
}
},
streamTitle: {
notNull: true,
type: "varchar",
params: {
length: 32
}
},
liveonly: {
notNull: true,
type: "enum",
enumeration: ["online", "offline"]
},
hub: {
notNull: true,
type: "varchar",
params: {
length: 32
}
},
streamKey: {
notNull: true,
type: "varchar",
params: {
length: 64
}
},
entity: {
notNull: true,
type: "varchar",
params: {
length: 32
}
},
entityId: {
notNull: true,
type: "varchar",
params: {
length: 64
}
},
rtmpPushUrl: {
notNull: true,
type: "varchar",
params: {
length: 64
}
},
rtmpPlayUrl: {
notNull: true,
type: "varchar",
params: {
length: 64
}
},
pcPushUrl: {
notNull: true,
type: "varchar",
params: {
length: 64
}
},
expireAt: {
notNull: true,
type: "datetime"
}
},
actionType: "crud",
actions: action_1.genericActions
};