sql-code-generator
Version:
Generate code from your SQL schema and queries for type safety and development speed.
23 lines • 987 B
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.TypeDefinitionOfResourceColumn = void 0;
const domain_objects_1 = require("domain-objects");
const joi_1 = __importDefault(require("joi"));
const constants_1 = require("../constants");
/*
key value map of any key string -> data type[] (we join the array into a union)
*/
const schema = joi_1.default.object().keys({
name: joi_1.default.string().required(),
type: joi_1.default.array().items(joi_1.default.string()
.valid(...Object.values(constants_1.DataType))
.required()),
});
class TypeDefinitionOfResourceColumn extends domain_objects_1.DomainObject {
}
exports.TypeDefinitionOfResourceColumn = TypeDefinitionOfResourceColumn;
TypeDefinitionOfResourceColumn.schema = schema;
//# sourceMappingURL=TypeDefinitionOfResourceColumn.js.map