@natrave/shared-entities 4.0.0 → 6.0.0
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { User } from '../../app-auth';
|
|
2
|
-
import {
|
|
2
|
+
import { TournamentCategoryGroup } from '../tournament-category-groups';
|
|
3
3
|
export declare class TournamentFollow {
|
|
4
4
|
id: string;
|
|
5
5
|
userId: string;
|
|
@@ -7,6 +7,6 @@ export declare class TournamentFollow {
|
|
|
7
7
|
unfollowedAt: Date | null;
|
|
8
8
|
createdAt: Date;
|
|
9
9
|
user: User;
|
|
10
|
-
tournament:
|
|
10
|
+
tournament: TournamentCategoryGroup;
|
|
11
11
|
}
|
|
12
12
|
//# sourceMappingURL=tournament-follow.entity.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tournament-follow.entity.d.ts","sourceRoot":"","sources":["../../../src/tournaments/tournament-follows/tournament-follow.entity.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AACtC,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"tournament-follow.entity.d.ts","sourceRoot":"","sources":["../../../src/tournaments/tournament-follows/tournament-follow.entity.ts"],"names":[],"mappings":"AAWA,OAAO,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AACtC,OAAO,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAC;AAexE,qBAQa,gBAAgB;IAI3B,EAAE,EAAE,MAAM,CAAC;IAOX,MAAM,EAAE,MAAM,CAAC;IAQf,YAAY,EAAE,MAAM,CAAC;IAQrB,YAAY,EAAE,IAAI,GAAG,IAAI,CAAC;IAO1B,SAAS,EAAE,IAAI,CAAC;IAMhB,IAAI,EAAE,IAAI,CAAC;IAIX,UAAU,EAAE,uBAAuB,CAAC;CACrC"}
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
Unique
|
|
20
20
|
} from "typeorm";
|
|
21
21
|
import { User } from "../../app-auth/index.js";
|
|
22
|
-
import {
|
|
22
|
+
import { TournamentCategoryGroup } from "../tournament-category-groups/index.js";
|
|
23
23
|
let TournamentFollow = class {
|
|
24
24
|
};
|
|
25
25
|
__decorateClass([
|
|
@@ -31,14 +31,14 @@ __decorateClass([
|
|
|
31
31
|
Column({
|
|
32
32
|
name: "user_id",
|
|
33
33
|
type: "uuid",
|
|
34
|
-
comment: "FK users.id. Usu\xE1rio que segue o
|
|
34
|
+
comment: "FK users.id. Usu\xE1rio que segue o campeonato."
|
|
35
35
|
})
|
|
36
36
|
], TournamentFollow.prototype, "userId", 2);
|
|
37
37
|
__decorateClass([
|
|
38
38
|
Column({
|
|
39
39
|
name: "tournament_id",
|
|
40
40
|
type: "int",
|
|
41
|
-
comment: "FK
|
|
41
|
+
comment: "FK tournament_category_groups.id. Campeonato (agrupador) seguido. Nome mantido por compatibilidade com a futura renomea\xE7\xE3o categoryGroup\u2192tournament."
|
|
42
42
|
})
|
|
43
43
|
], TournamentFollow.prototype, "tournamentId", 2);
|
|
44
44
|
__decorateClass([
|
|
@@ -46,7 +46,7 @@ __decorateClass([
|
|
|
46
46
|
name: "unfollowed_at",
|
|
47
47
|
type: "timestamptz",
|
|
48
48
|
nullable: true,
|
|
49
|
-
comment: "Data/hora em que o usu\xE1rio deixou de seguir o
|
|
49
|
+
comment: "Data/hora em que o usu\xE1rio deixou de seguir o campeonato."
|
|
50
50
|
})
|
|
51
51
|
], TournamentFollow.prototype, "unfollowedAt", 2);
|
|
52
52
|
__decorateClass([
|
|
@@ -61,7 +61,7 @@ __decorateClass([
|
|
|
61
61
|
JoinColumn({ name: "user_id" })
|
|
62
62
|
], TournamentFollow.prototype, "user", 2);
|
|
63
63
|
__decorateClass([
|
|
64
|
-
ManyToOne(() =>
|
|
64
|
+
ManyToOne(() => TournamentCategoryGroup, { onDelete: "CASCADE" }),
|
|
65
65
|
JoinColumn({ name: "tournament_id" })
|
|
66
66
|
], TournamentFollow.prototype, "tournament", 2);
|
|
67
67
|
TournamentFollow = __decorateClass([
|