UNPKG

456 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3exports.PrimaryKey = void 0;
4const attribute_service_1 = require("../attribute-service");
5/**
6 * Sets primary key option true for annotated property.
7 */
8function PrimaryKey(target, propertyName) {
9 (0, attribute_service_1.addAttributeOptions)(target, propertyName, {
10 primaryKey: true,
11 });
12}
13exports.PrimaryKey = PrimaryKey;
14//# sourceMappingURL=primary-key.js.map
\No newline at end of file