tt-entities 0.0.21 → 0.0.23

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.
@@ -9,6 +9,12 @@ import { Country } from './country.entity';
9
9
 
10
10
  @Table
11
11
  export class Area extends Model {
12
+ @Column({ allowNull: false })
13
+ declare nameEn: string;
14
+
15
+ @Column({ allowNull: false })
16
+ declare nameAr: string;
17
+
12
18
  @ForeignKey(() => Country)
13
19
  @Column({
14
20
  allowNull: false,
@@ -2,14 +2,24 @@ import { Column, Model, Table } from 'sequelize-typescript';
2
2
 
3
3
  @Table
4
4
  export class Country extends Model {
5
+ @Column
6
+ declare nameEn: string;
7
+
8
+ @Column
9
+ declare nameAr: string;
10
+
5
11
  @Column
6
12
  declare flagIcon: string;
13
+
7
14
  @Column
8
15
  declare isoCode: string;
16
+
9
17
  @Column
10
18
  declare phoneExt: string;
19
+
11
20
  @Column
12
21
  declare currency: string;
22
+
13
23
  @Column
14
24
  declare exchangeRateToKwd: number;
15
25
  }
@@ -38,8 +38,8 @@ import { PurchaseOrder } from './entities/purchase-order.entity';
38
38
  import { PurchaseOrderItem } from './entities/purchase-order-item.entity';
39
39
 
40
40
  // ─── Permissions ──────────────────────────────────────────────────────────────
41
- import { Permission } from '@app/tatayab-entities-library/entities/permission.entity';
42
- import { RolePermission } from '@app/tatayab-entities-library/entities/role-permission.entity';
41
+ import { Permission } from './entities/permission.entity';
42
+ import { RolePermission } from './entities/role-permission.entity';
43
43
 
44
44
  // =============================================================================
45
45
  // EXPORTS
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tt-entities",
3
- "version": "0.0.21",
3
+ "version": "0.0.23",
4
4
  "description": "Tatayab entities library",
5
5
  "main": "dist/libs/tatayab-entities-library/index.js",
6
6
  "types": "dist/libs/tatayab-entities-library/index.d.ts",