We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3b7206d commit f48e3b9Copy full SHA for f48e3b9
src/Model/Person/Person.ts
@@ -11,7 +11,7 @@ class Person extends Model<Person> {
11
static encryptPassword = encryptPassword
12
13
@IsUUID(4) @PrimaryKey @Unique @Column
14
- id: number;
+ person_id: number;
15
16
@AllowNull(false) @Column
17
first_name: string;
src/Model/PersonDetail/PersonDetail.ts
@@ -19,11 +19,8 @@ class PersonDetail extends Model<PersonDetail> {
19
// has many asset row
20
asset: string
21
22
- @ForeignKey(() => Person) @Column
23
- personId: number;
24
-
25
@BelongsTo(() => Person)
26
- person: Person;
+ person_id: Person;
27
28
@AllowNull(false) @Column(DataType.STRING)
29
type: string;
0 commit comments