echadospalante-core 9.7.0 → 10.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.
Files changed (46) hide show
  1. package/dist/app/modules/infrastructure/database/entities/department.data.js +3 -1
  2. package/dist/app/modules/infrastructure/database/entities/event-category.data.js +4 -2
  3. package/dist/app/modules/infrastructure/database/entities/event-donation.data.js +1 -1
  4. package/dist/app/modules/infrastructure/database/entities/event-location.data.js +1 -1
  5. package/dist/app/modules/infrastructure/database/entities/municipality.data.js +1 -1
  6. package/dist/app/modules/infrastructure/database/entities/notification.data.js +1 -1
  7. package/dist/app/modules/infrastructure/database/entities/publication-clap.data.js +1 -1
  8. package/dist/app/modules/infrastructure/database/entities/publication-comment.data.js +1 -1
  9. package/dist/app/modules/infrastructure/database/entities/publication-content.data.js +1 -1
  10. package/dist/app/modules/infrastructure/database/entities/role.data.js +1 -1
  11. package/dist/app/modules/infrastructure/database/entities/user-contact.data.js +1 -1
  12. package/dist/app/modules/infrastructure/database/entities/user-detail.data.d.ts +1 -1
  13. package/dist/app/modules/infrastructure/database/entities/user-detail.data.js +1 -1
  14. package/dist/app/modules/infrastructure/database/entities/user.data.js +3 -3
  15. package/dist/app/modules/infrastructure/database/entities/venture-category.data.js +1 -1
  16. package/dist/app/modules/infrastructure/database/entities/venture-contact.data.js +1 -1
  17. package/dist/app/modules/infrastructure/database/entities/venture-detail.data.js +1 -1
  18. package/dist/app/modules/infrastructure/database/entities/venture-event.data.js +1 -1
  19. package/dist/app/modules/infrastructure/database/entities/venture-location.data.js +1 -1
  20. package/dist/app/modules/infrastructure/database/entities/venture-publication.data.js +1 -1
  21. package/dist/app/modules/infrastructure/database/entities/venture-sponsorship.data.js +1 -1
  22. package/dist/app/modules/infrastructure/database/entities/venture-subscription.data.js +1 -1
  23. package/dist/app/modules/infrastructure/database/entities/venture.data.js +2 -2
  24. package/package.json +1 -1
  25. package/src/app/modules/infrastructure/database/entities/department.data.ts +3 -1
  26. package/src/app/modules/infrastructure/database/entities/event-category.data.ts +4 -2
  27. package/src/app/modules/infrastructure/database/entities/event-donation.data.ts +1 -1
  28. package/src/app/modules/infrastructure/database/entities/event-location.data.ts +1 -1
  29. package/src/app/modules/infrastructure/database/entities/municipality.data.ts +1 -1
  30. package/src/app/modules/infrastructure/database/entities/notification.data.ts +1 -1
  31. package/src/app/modules/infrastructure/database/entities/publication-clap.data.ts +1 -1
  32. package/src/app/modules/infrastructure/database/entities/publication-comment.data.ts +1 -1
  33. package/src/app/modules/infrastructure/database/entities/publication-content.data.ts +1 -1
  34. package/src/app/modules/infrastructure/database/entities/role.data.ts +1 -1
  35. package/src/app/modules/infrastructure/database/entities/user-contact.data.ts +1 -1
  36. package/src/app/modules/infrastructure/database/entities/user-detail.data.ts +2 -2
  37. package/src/app/modules/infrastructure/database/entities/user.data.ts +3 -3
  38. package/src/app/modules/infrastructure/database/entities/venture-category.data.ts +1 -1
  39. package/src/app/modules/infrastructure/database/entities/venture-contact.data.ts +1 -1
  40. package/src/app/modules/infrastructure/database/entities/venture-detail.data.ts +1 -1
  41. package/src/app/modules/infrastructure/database/entities/venture-event.data.ts +1 -1
  42. package/src/app/modules/infrastructure/database/entities/venture-location.data.ts +1 -1
  43. package/src/app/modules/infrastructure/database/entities/venture-publication.data.ts +1 -1
  44. package/src/app/modules/infrastructure/database/entities/venture-sponsorship.data.ts +1 -1
  45. package/src/app/modules/infrastructure/database/entities/venture-subscription.data.ts +1 -1
  46. package/src/app/modules/infrastructure/database/entities/venture.data.ts +2 -2
@@ -41,5 +41,7 @@ __decorate([
41
41
  __metadata("design:type", Array)
42
42
  ], DepartmentData.prototype, "municipalities", void 0);
43
43
  exports.DepartmentData = DepartmentData = __decorate([
44
- (0, typeorm_1.Entity)()
44
+ (0, typeorm_1.Entity)({
45
+ name: "department",
46
+ })
45
47
  ], DepartmentData);
@@ -49,12 +49,14 @@ __decorate([
49
49
  __decorate([
50
50
  (0, typeorm_1.ManyToMany)(() => venture_event_data_1.VentureEventData, (ventureEvent) => ventureEvent.categories),
51
51
  (0, typeorm_1.JoinTable)({
52
- name: "x_event_category",
52
+ name: "x_event_event_category",
53
53
  joinColumn: { name: "categoryId", referencedColumnName: "id" },
54
54
  inverseJoinColumn: { name: "eventId", referencedColumnName: "id" },
55
55
  }),
56
56
  __metadata("design:type", Array)
57
57
  ], EventCategoryData.prototype, "events", void 0);
58
58
  exports.EventCategoryData = EventCategoryData = __decorate([
59
- (0, typeorm_1.Entity)()
59
+ (0, typeorm_1.Entity)({
60
+ name: "event_category",
61
+ })
60
62
  ], EventCategoryData);
@@ -49,5 +49,5 @@ __decorate([
49
49
  __metadata("design:type", venture_event_data_1.VentureEventData)
50
50
  ], EventDonationData.prototype, "event", void 0);
51
51
  exports.EventDonationData = EventDonationData = __decorate([
52
- (0, typeorm_1.Entity)()
52
+ (0, typeorm_1.Entity)({ name: "event_donation" })
53
53
  ], EventDonationData);
@@ -41,5 +41,5 @@ __decorate([
41
41
  __metadata("design:type", venture_event_data_1.VentureEventData)
42
42
  ], EventLocationData.prototype, "event", void 0);
43
43
  exports.EventLocationData = EventLocationData = __decorate([
44
- (0, typeorm_1.Entity)()
44
+ (0, typeorm_1.Entity)({ name: "event_location" })
45
45
  ], EventLocationData);
@@ -48,5 +48,5 @@ __decorate([
48
48
  __metadata("design:type", Array)
49
49
  ], MunicipalityData.prototype, "userDetails", void 0);
50
50
  exports.MunicipalityData = MunicipalityData = __decorate([
51
- (0, typeorm_1.Entity)()
51
+ (0, typeorm_1.Entity)({ name: "municipality" })
52
52
  ], MunicipalityData);
@@ -64,5 +64,5 @@ __decorate([
64
64
  __metadata("design:type", user_detail_data_1.UserDetailData)
65
65
  ], NotificationData.prototype, "user", void 0);
66
66
  exports.NotificationData = NotificationData = __decorate([
67
- (0, typeorm_1.Entity)()
67
+ (0, typeorm_1.Entity)({ name: "notification" })
68
68
  ], NotificationData);
@@ -39,5 +39,5 @@ __decorate([
39
39
  __metadata("design:type", Date)
40
40
  ], PublicationClapData.prototype, "createdAt", void 0);
41
41
  exports.PublicationClapData = PublicationClapData = __decorate([
42
- (0, typeorm_1.Entity)()
42
+ (0, typeorm_1.Entity)({ name: "publication_clap" })
43
43
  ], PublicationClapData);
@@ -44,5 +44,5 @@ __decorate([
44
44
  __metadata("design:type", Date)
45
45
  ], PublicationCommentData.prototype, "createdAt", void 0);
46
46
  exports.PublicationCommentData = PublicationCommentData = __decorate([
47
- (0, typeorm_1.Entity)()
47
+ (0, typeorm_1.Entity)({ name: "publication_comment" })
48
48
  ], PublicationCommentData);
@@ -48,5 +48,5 @@ __decorate([
48
48
  __metadata("design:type", venture_publication_data_1.VenturePublicationData)
49
49
  ], PublicationContentData.prototype, "publication", void 0);
50
50
  exports.PublicationContentData = PublicationContentData = __decorate([
51
- (0, typeorm_1.Entity)()
51
+ (0, typeorm_1.Entity)({ name: "publication_content" })
52
52
  ], PublicationContentData);
@@ -47,5 +47,5 @@ __decorate([
47
47
  __metadata("design:type", Array)
48
48
  ], RoleData.prototype, "users", void 0);
49
49
  exports.RoleData = RoleData = __decorate([
50
- (0, typeorm_1.Entity)()
50
+ (0, typeorm_1.Entity)({ name: "role" })
51
51
  ], RoleData);
@@ -66,5 +66,5 @@ __decorate([
66
66
  __metadata("design:type", user_data_1.UserData)
67
67
  ], UserContactData.prototype, "user", void 0);
68
68
  exports.UserContactData = UserContactData = __decorate([
69
- (0, typeorm_1.Entity)()
69
+ (0, typeorm_1.Entity)({ name: "user_contact" })
70
70
  ], UserContactData);
@@ -9,7 +9,7 @@ import { VentureSubscriptionData } from "./venture-subscription.data";
9
9
  import { VentureData } from "./venture.data";
10
10
  export declare class UserDetailData {
11
11
  id: string;
12
- gender: string;
12
+ gender: "M" | "F" | "O";
13
13
  birthDate: Date;
14
14
  user?: UserData;
15
15
  municipality?: MunicipalityData;
@@ -85,5 +85,5 @@ __decorate([
85
85
  __metadata("design:type", Array)
86
86
  ], UserDetailData.prototype, "ventures", void 0);
87
87
  exports.UserDetailData = UserDetailData = __decorate([
88
- (0, typeorm_1.Entity)()
88
+ (0, typeorm_1.Entity)({ name: "user_detail" })
89
89
  ], UserDetailData);
@@ -84,14 +84,14 @@ __decorate([
84
84
  ], UserData.prototype, "detail", void 0);
85
85
  __decorate([
86
86
  (0, typeorm_1.ManyToMany)(() => venture_category_data_1.VentureCategoryData, (vc) => vc.users),
87
- (0, typeorm_1.JoinTable)({ name: "XUserPreferences" }),
87
+ (0, typeorm_1.JoinTable)({ name: "x_user_preference" }),
88
88
  __metadata("design:type", Array)
89
89
  ], UserData.prototype, "preferences", void 0);
90
90
  __decorate([
91
91
  (0, typeorm_1.ManyToMany)(() => role_data_1.RoleData, (role) => role.users, { eager: true }),
92
- (0, typeorm_1.JoinTable)({ name: "XUserRoles" }),
92
+ (0, typeorm_1.JoinTable)({ name: "x_user_role" }),
93
93
  __metadata("design:type", Array)
94
94
  ], UserData.prototype, "roles", void 0);
95
95
  exports.UserData = UserData = __decorate([
96
- (0, typeorm_1.Entity)()
96
+ (0, typeorm_1.Entity)({ name: "user" })
97
97
  ], UserData);
@@ -57,5 +57,5 @@ __decorate([
57
57
  __metadata("design:type", Array)
58
58
  ], VentureCategoryData.prototype, "ventures", void 0);
59
59
  exports.VentureCategoryData = VentureCategoryData = __decorate([
60
- (0, typeorm_1.Entity)()
60
+ (0, typeorm_1.Entity)({ name: "venture_category" })
61
61
  ], VentureCategoryData);
@@ -46,5 +46,5 @@ __decorate([
46
46
  __metadata("design:type", venture_data_1.VentureData)
47
47
  ], VentureContactData.prototype, "Venture", void 0);
48
48
  exports.VentureContactData = VentureContactData = __decorate([
49
- (0, typeorm_1.Entity)()
49
+ (0, typeorm_1.Entity)({ name: "venture_contact" })
50
50
  ], VentureContactData);
@@ -60,5 +60,5 @@ __decorate([
60
60
  __metadata("design:type", Array)
61
61
  ], VentureDetailData.prototype, "subscriptions", void 0);
62
62
  exports.VentureDetailData = VentureDetailData = __decorate([
63
- (0, typeorm_1.Entity)()
63
+ (0, typeorm_1.Entity)({ name: "venture_detail" })
64
64
  ], VentureDetailData);
@@ -81,5 +81,5 @@ __decorate([
81
81
  __metadata("design:type", Date)
82
82
  ], VentureEventData.prototype, "updatedAt", void 0);
83
83
  exports.VentureEventData = VentureEventData = __decorate([
84
- (0, typeorm_1.Entity)()
84
+ (0, typeorm_1.Entity)({ name: "venture_event" })
85
85
  ], VentureEventData);
@@ -51,5 +51,5 @@ __decorate([
51
51
  __metadata("design:type", venture_data_1.VentureData)
52
52
  ], VentureLocationData.prototype, "Venture", void 0);
53
53
  exports.VentureLocationData = VentureLocationData = __decorate([
54
- (0, typeorm_1.Entity)()
54
+ (0, typeorm_1.Entity)({ name: "venture_location" })
55
55
  ], VentureLocationData);
@@ -76,5 +76,5 @@ __decorate([
76
76
  __metadata("design:type", Array)
77
77
  ], VenturePublicationData.prototype, "contents", void 0);
78
78
  exports.VenturePublicationData = VenturePublicationData = __decorate([
79
- (0, typeorm_1.Entity)()
79
+ (0, typeorm_1.Entity)({ name: "venture_publication" })
80
80
  ], VenturePublicationData);
@@ -49,5 +49,5 @@ __decorate([
49
49
  __metadata("design:type", venture_detail_data_1.VentureDetailData)
50
50
  ], VentureSponsorshipData.prototype, "detail", void 0);
51
51
  exports.VentureSponsorshipData = VentureSponsorshipData = __decorate([
52
- (0, typeorm_1.Entity)()
52
+ (0, typeorm_1.Entity)({ name: "venture_sponsorship" })
53
53
  ], VentureSponsorshipData);
@@ -39,5 +39,5 @@ __decorate([
39
39
  __metadata("design:type", venture_detail_data_1.VentureDetailData)
40
40
  ], VentureSubscriptionData.prototype, "detail", void 0);
41
41
  exports.VentureSubscriptionData = VentureSubscriptionData = __decorate([
42
- (0, typeorm_1.Entity)()
42
+ (0, typeorm_1.Entity)({ name: "venture_subscription" })
43
43
  ], VentureSubscriptionData);
@@ -92,12 +92,12 @@ __decorate([
92
92
  __decorate([
93
93
  (0, typeorm_1.ManyToMany)(() => venture_category_data_1.VentureCategoryData, (ventureCategory) => ventureCategory.ventures),
94
94
  (0, typeorm_1.JoinTable)({
95
- name: "x_venture_vencure_category",
95
+ name: "x_venture_venture_category",
96
96
  joinColumn: { name: "ventureId", referencedColumnName: "id" },
97
97
  inverseJoinColumn: { name: "categoryId", referencedColumnName: "id" },
98
98
  }),
99
99
  __metadata("design:type", Array)
100
100
  ], VentureData.prototype, "categories", void 0);
101
101
  exports.VentureData = VentureData = __decorate([
102
- (0, typeorm_1.Entity)()
102
+ (0, typeorm_1.Entity)({ name: "venture" })
103
103
  ], VentureData);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "echadospalante-core",
3
- "version": "9.7.0",
3
+ "version": "10.0.0",
4
4
  "description": "This package contains the core of the echadospalante project, it contains the domain entities, helpers, and other utilities that are shared between the different services.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -9,7 +9,9 @@ import {
9
9
 
10
10
  import { MunicipalityData } from "./municipality.data";
11
11
 
12
- @Entity()
12
+ @Entity({
13
+ name: "department",
14
+ })
13
15
  export class DepartmentData {
14
16
  @PrimaryGeneratedColumn()
15
17
  id: number;
@@ -10,7 +10,9 @@ import {
10
10
  } from "typeorm";
11
11
  import { VentureEventData } from "./venture-event.data";
12
12
 
13
- @Entity()
13
+ @Entity({
14
+ name: "event_category",
15
+ })
14
16
  export class EventCategoryData {
15
17
  @PrimaryGeneratedColumn("uuid")
16
18
  id: string;
@@ -32,7 +34,7 @@ export class EventCategoryData {
32
34
 
33
35
  @ManyToMany(() => VentureEventData, (ventureEvent) => ventureEvent.categories)
34
36
  @JoinTable({
35
- name: "x_event_category",
37
+ name: "x_event_event_category",
36
38
  joinColumn: { name: "categoryId", referencedColumnName: "id" },
37
39
  inverseJoinColumn: { name: "eventId", referencedColumnName: "id" },
38
40
  })
@@ -10,7 +10,7 @@ import {
10
10
  import { UserDetailData } from "./user-detail.data";
11
11
  import { VentureEventData } from "./venture-event.data";
12
12
 
13
- @Entity()
13
+ @Entity({ name: "event_donation" })
14
14
  export class EventDonationData {
15
15
  @PrimaryGeneratedColumn("uuid")
16
16
  id: string;
@@ -1,7 +1,7 @@
1
1
  import { Entity, PrimaryGeneratedColumn, Column, OneToOne } from "typeorm";
2
2
  import { VentureEventData } from "./venture-event.data";
3
3
 
4
- @Entity()
4
+ @Entity({ name: "event_location" })
5
5
  export class EventLocationData {
6
6
  @PrimaryGeneratedColumn("uuid")
7
7
  id: string;
@@ -12,7 +12,7 @@ import {
12
12
  import { DepartmentData } from "./department.data";
13
13
  import { UserDetailData } from "./user-detail.data";
14
14
 
15
- @Entity()
15
+ @Entity({ name: "municipality" })
16
16
  export class MunicipalityData {
17
17
  @PrimaryGeneratedColumn()
18
18
  id: number;
@@ -12,7 +12,7 @@ import { NotificationType } from "../../../domain/notifications";
12
12
  import { NotificationStatus } from "../../../domain/notifications/notification";
13
13
  import { UserDetailData } from "./user-detail.data";
14
14
 
15
- @Entity()
15
+ @Entity({ name: "notification" })
16
16
  export class NotificationData {
17
17
  @PrimaryGeneratedColumn("uuid")
18
18
  id: string;
@@ -11,7 +11,7 @@ import {
11
11
  import { UserDetailData } from "./user-detail.data";
12
12
  import { VenturePublicationData } from "./venture-publication.data";
13
13
 
14
- @Entity()
14
+ @Entity({ name: "publication_clap" })
15
15
  export class PublicationClapData {
16
16
  @PrimaryGeneratedColumn("uuid")
17
17
  id: string;
@@ -11,7 +11,7 @@ import {
11
11
  import { UserDetailData } from "./user-detail.data";
12
12
  import { VenturePublicationData } from "./venture-publication.data";
13
13
 
14
- @Entity()
14
+ @Entity({ name: "publication_comment" })
15
15
  export class PublicationCommentData {
16
16
  @PrimaryGeneratedColumn("uuid")
17
17
  id: string;
@@ -11,7 +11,7 @@ import {
11
11
  import { ContentType } from "../../../domain/shared";
12
12
  import { VenturePublicationData } from "./venture-publication.data";
13
13
 
14
- @Entity()
14
+ @Entity({ name: "publication_content" })
15
15
  export class PublicationContentData {
16
16
  @PrimaryGeneratedColumn("uuid")
17
17
  id: string;
@@ -10,7 +10,7 @@ import {
10
10
  import { AppRole } from "../../../domain/user";
11
11
  import { UserData } from "./user.data";
12
12
 
13
- @Entity()
13
+ @Entity({ name: "role" })
14
14
  export class RoleData {
15
15
  @PrimaryGeneratedColumn("uuid")
16
16
  id: string;
@@ -9,7 +9,7 @@ import {
9
9
 
10
10
  import { UserData } from "./user.data";
11
11
 
12
- @Entity()
12
+ @Entity({ name: "user_contact" })
13
13
  export class UserContactData {
14
14
  @PrimaryGeneratedColumn("uuid")
15
15
  id: string;
@@ -19,13 +19,13 @@ import { VentureSponsorshipData } from "./venture-sponsorship.data";
19
19
  import { VentureSubscriptionData } from "./venture-subscription.data";
20
20
  import { VentureData } from "./venture.data";
21
21
 
22
- @Entity()
22
+ @Entity({ name: "user_detail" })
23
23
  export class UserDetailData {
24
24
  @PrimaryGeneratedColumn("uuid")
25
25
  id: string;
26
26
 
27
27
  @Column({ type: "enum", enum: ["M", "F", "O"] })
28
- gender: string;
28
+ gender: "M" | "F" | "O";
29
29
 
30
30
  @Column()
31
31
  birthDate: Date;
@@ -15,7 +15,7 @@ import { UserContactData } from "./user-contact.data";
15
15
  import { UserDetailData } from "./user-detail.data";
16
16
  import { VentureCategoryData } from "./venture-category.data";
17
17
 
18
- @Entity()
18
+ @Entity({ name: "user" })
19
19
  export class UserData {
20
20
  @PrimaryGeneratedColumn("uuid")
21
21
  id: string;
@@ -56,10 +56,10 @@ export class UserData {
56
56
  detail?: UserDetailData;
57
57
 
58
58
  @ManyToMany(() => VentureCategoryData, (vc) => vc.users)
59
- @JoinTable({ name: "XUserPreferences" })
59
+ @JoinTable({ name: "x_user_preference" })
60
60
  preferences: VentureCategoryData[];
61
61
 
62
62
  @ManyToMany(() => RoleData, (role) => role.users, { eager: true })
63
- @JoinTable({ name: "XUserRoles" })
63
+ @JoinTable({ name: "x_user_role" })
64
64
  roles: RoleData[];
65
65
  }
@@ -10,7 +10,7 @@ import {
10
10
  import { UserData } from "./user.data";
11
11
  import { VentureData } from "./venture.data";
12
12
 
13
- @Entity()
13
+ @Entity({ name: "venture_category" })
14
14
  export class VentureCategoryData {
15
15
  @PrimaryGeneratedColumn("uuid")
16
16
  id: string;
@@ -8,7 +8,7 @@ import {
8
8
  } from "typeorm";
9
9
  import { VentureData } from "./venture.data";
10
10
 
11
- @Entity()
11
+ @Entity({ name: "venture_contact" })
12
12
  export class VentureContactData {
13
13
  @PrimaryGeneratedColumn("uuid")
14
14
  id: string;
@@ -13,7 +13,7 @@ import { VentureSponsorshipData } from "./venture-sponsorship.data";
13
13
  import { VentureSubscriptionData } from "./venture-subscription.data";
14
14
  import { VentureData } from "./venture.data";
15
15
 
16
- @Entity()
16
+ @Entity({ name: "venture_detail" })
17
17
  export class VentureDetailData {
18
18
  @PrimaryGeneratedColumn("uuid")
19
19
  id: string;
@@ -15,7 +15,7 @@ import { EventDonationData } from "./event-donation.data";
15
15
  import { VentureDetailData } from "./venture-detail.data";
16
16
  import { EventCategoryData } from "./event-category.data";
17
17
 
18
- @Entity()
18
+ @Entity({ name: "venture_event" })
19
19
  export class VentureEventData {
20
20
  @PrimaryGeneratedColumn("uuid")
21
21
  id: string;
@@ -8,7 +8,7 @@ import {
8
8
  } from "typeorm";
9
9
  import { VentureData } from "./venture.data";
10
10
 
11
- @Entity()
11
+ @Entity({ name: "venture_location" })
12
12
  export class VentureLocationData {
13
13
  @PrimaryGeneratedColumn("uuid")
14
14
  id: string;
@@ -15,7 +15,7 @@ import { VentureDetailData } from "./venture-detail.data";
15
15
  import { PublicationContentData } from "./publication-content.data";
16
16
  import { PublicationType } from "../../../domain/publications";
17
17
 
18
- @Entity()
18
+ @Entity({ name: "venture_publication" })
19
19
  export class VenturePublicationData {
20
20
  @PrimaryGeneratedColumn("uuid")
21
21
  id: string;
@@ -10,7 +10,7 @@ import {
10
10
  import { UserDetailData } from "./user-detail.data";
11
11
  import { VentureDetailData } from "./venture-detail.data";
12
12
 
13
- @Entity()
13
+ @Entity({ name: "venture_sponsorship" })
14
14
  export class VentureSponsorshipData {
15
15
  @PrimaryGeneratedColumn("uuid")
16
16
  id: string;
@@ -10,7 +10,7 @@ import {
10
10
  import { UserDetailData } from "./user-detail.data";
11
11
  import { VentureDetailData } from "./venture-detail.data";
12
12
 
13
- @Entity()
13
+ @Entity({ name: "venture_subscription" })
14
14
  export class VentureSubscriptionData {
15
15
  @PrimaryGeneratedColumn("uuid")
16
16
  id: string;
@@ -17,7 +17,7 @@ import { UserDetailData } from "./user-detail.data";
17
17
  import { VentureContactData } from "./venture-contact.data";
18
18
  import { VentureCategoryData } from "./venture-category.data";
19
19
 
20
- @Entity()
20
+ @Entity({ name: "venture" })
21
21
  export class VentureData {
22
22
  @PrimaryGeneratedColumn("uuid")
23
23
  id: string;
@@ -73,7 +73,7 @@ export class VentureData {
73
73
  (ventureCategory) => ventureCategory.ventures
74
74
  )
75
75
  @JoinTable({
76
- name: "x_venture_vencure_category",
76
+ name: "x_venture_venture_category",
77
77
  joinColumn: { name: "ventureId", referencedColumnName: "id" },
78
78
  inverseJoinColumn: { name: "categoryId", referencedColumnName: "id" },
79
79
  })