dyna-record 0.0.4 → 0.0.6
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.
|
@@ -16,7 +16,7 @@ import type { AttributeOptions } from "../types";
|
|
|
16
16
|
* ```typescript
|
|
17
17
|
* class Order extends BaseEntity {
|
|
18
18
|
* @ForeignKeyAttribute({ alias: 'UserID' })
|
|
19
|
-
* public userId: ForeignKey; // Foreign key to the User entity. Cannot be optional. See
|
|
19
|
+
* public userId: ForeignKey; // Foreign key to the User entity. Cannot be optional. See NullableForeignKeyAttribute otherwise
|
|
20
20
|
*
|
|
21
21
|
* @BelongsTo(() => User, { foreignKey: "userId" })
|
|
22
22
|
* public readonly user: User; // Cannot be optional
|
|
@@ -19,7 +19,7 @@ const metadata_1 = __importDefault(require("../../metadata"));
|
|
|
19
19
|
* ```typescript
|
|
20
20
|
* class Order extends BaseEntity {
|
|
21
21
|
* @ForeignKeyAttribute({ alias: 'UserID' })
|
|
22
|
-
* public userId: ForeignKey; // Foreign key to the User entity. Cannot be optional. See
|
|
22
|
+
* public userId: ForeignKey; // Foreign key to the User entity. Cannot be optional. See NullableForeignKeyAttribute otherwise
|
|
23
23
|
*
|
|
24
24
|
* @BelongsTo(() => User, { foreignKey: "userId" })
|
|
25
25
|
* public readonly user: User; // Cannot be optional
|