pangea-server 1.0.7 → 1.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -14,11 +14,13 @@ type Relation = {
|
|
|
14
14
|
};
|
|
15
15
|
type Relations = Record<string, Relation>;
|
|
16
16
|
export declare abstract class BaseModel extends Model {
|
|
17
|
+
protected readonly __brand: string;
|
|
17
18
|
private static __ExcludedAttributes?;
|
|
18
19
|
private static __Columns?;
|
|
19
20
|
private static __ColumnIndexes?;
|
|
20
21
|
private static __Relations?;
|
|
21
22
|
id: ModelId;
|
|
23
|
+
constructor();
|
|
22
24
|
static get ExcludedAttributes(): string[];
|
|
23
25
|
static get Columns(): Columns;
|
|
24
26
|
static get ColumnIndexes(): Index[];
|
|
@@ -12,6 +12,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.BaseModel = void 0;
|
|
13
13
|
const sequelize_typescript_1 = require("sequelize-typescript");
|
|
14
14
|
class BaseModel extends sequelize_typescript_1.Model {
|
|
15
|
+
constructor() {
|
|
16
|
+
super();
|
|
17
|
+
Object.defineProperty(this, '__brand', {
|
|
18
|
+
value: this.constructor.name,
|
|
19
|
+
enumerable: false,
|
|
20
|
+
writable: false,
|
|
21
|
+
});
|
|
22
|
+
}
|
|
15
23
|
static get ExcludedAttributes() {
|
|
16
24
|
return this.__ExcludedAttributes || [];
|
|
17
25
|
}
|