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.
- package/dist/libs/tatayab-entities-library/entities/area.entity.d.ts +2 -0
- package/dist/libs/tatayab-entities-library/entities/area.entity.js +8 -0
- package/dist/libs/tatayab-entities-library/entities/area.entity.js.map +1 -1
- package/dist/libs/tatayab-entities-library/entities/country.entity.d.ts +2 -0
- package/dist/libs/tatayab-entities-library/entities/country.entity.js +8 -0
- package/dist/libs/tatayab-entities-library/entities/country.entity.js.map +1 -1
- package/dist/libs/tatayab-entities-library/index.js +2 -2
- package/dist/libs/tatayab-entities-library/index.js.map +1 -1
- package/dist/src/main.js +2578 -0
- package/libs/tatayab-entities-library/src/entities/area.entity.ts +6 -0
- package/libs/tatayab-entities-library/src/entities/country.entity.ts +10 -0
- package/libs/tatayab-entities-library/src/index.ts +2 -2
- package/package.json +1 -1
|
@@ -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 '
|
|
42
|
-
import { RolePermission } from '
|
|
41
|
+
import { Permission } from './entities/permission.entity';
|
|
42
|
+
import { RolePermission } from './entities/role-permission.entity';
|
|
43
43
|
|
|
44
44
|
// =============================================================================
|
|
45
45
|
// EXPORTS
|