@tmlmobilidade/databases 20260623.1548.1 → 20260623.2343.41

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.
@@ -10,7 +10,7 @@ const tableSchema = {
10
10
  banking_token: { type: 'String' },
11
11
  card_brand: { type: 'UInt8' },
12
12
  card_pan: { type: 'String' },
13
- created_at: { type: 'DateTime64(3, \'UTC\') CODEC(Delta, ZSTD)' },
13
+ created_at: { type: 'Int64' },
14
14
  device_id: { type: 'LowCardinality(String)' },
15
15
  event_type: { type: 'UInt8' },
16
16
  group_dimension: { type: 'Int32' },
@@ -22,10 +22,10 @@ const tableSchema = {
22
22
  operational_date: { type: 'UInt32' },
23
23
  pattern_id: { type: 'LowCardinality(String)' },
24
24
  product_id: { type: 'LowCardinality(String)' },
25
- received_at: { type: 'DateTime64(3, \'UTC\') CODEC(Delta, ZSTD)' },
25
+ received_at: { type: 'Int64' },
26
26
  stop_id: { type: 'LowCardinality(String)' },
27
27
  trip_id: { type: 'Nullable(String)' },
28
- updated_at: { type: 'DateTime64(3, \'UTC\') CODEC(Delta, ZSTD)' },
28
+ updated_at: { type: 'Int64' },
29
29
  vehicle_id: { type: 'LowCardinality(Nullable(String))' },
30
30
  };
31
31
  /* * */
@@ -7,7 +7,7 @@ const tableSchema = {
7
7
  _id: { type: 'UUID' },
8
8
  agency_id: { type: 'LowCardinality(String)' },
9
9
  apex_version: { type: 'LowCardinality(String)' },
10
- created_at: { type: 'DateTime64(3, \'UTC\') CODEC(Delta, ZSTD)' },
10
+ created_at: { type: 'Int64' },
11
11
  device_id: { type: 'LowCardinality(String)' },
12
12
  final_control_status: { type: 'UInt8' },
13
13
  inspection_id: { type: 'Nullable(UUID)' },
@@ -16,8 +16,8 @@ const tableSchema = {
16
16
  mac_ase_counter_value: { type: 'UInt64' },
17
17
  mac_sam_serial_number: { type: 'UInt64' },
18
18
  operational_date: { type: 'UInt32' },
19
- received_at: { type: 'DateTime64(3, \'UTC\') CODEC(Delta, ZSTD)' },
20
- updated_at: { type: 'DateTime64(3, \'UTC\') CODEC(Delta, ZSTD)' },
19
+ received_at: { type: 'Int64' },
20
+ updated_at: { type: 'Int64' },
21
21
  };
22
22
  /* * */
23
23
  class SimplifiedApexInspectionDecisionsNewClass extends ClickHouseInterfaceTemplate {
@@ -11,7 +11,7 @@ const tableSchema = {
11
11
  control_destination_stop_id: { type: 'LowCardinality(Nullable(String))' },
12
12
  control_origin_stop_id: { type: 'LowCardinality(Nullable(String))' },
13
13
  control_status: { type: 'UInt8' },
14
- created_at: { type: 'DateTime64(3, \'UTC\') CODEC(Delta, ZSTD)' },
14
+ created_at: { type: 'Int64' },
15
15
  device_id: { type: 'LowCardinality(String)' },
16
16
  environment_status: { type: 'UInt8' },
17
17
  inspection_id: { type: 'Nullable(UUID)' },
@@ -23,9 +23,9 @@ const tableSchema = {
23
23
  operational_date: { type: 'UInt32' },
24
24
  pattern_id: { type: 'LowCardinality(Nullable(String))' },
25
25
  product_id: { type: 'LowCardinality(Nullable(String))' },
26
- received_at: { type: 'DateTime64(3, \'UTC\') CODEC(Delta, ZSTD)' },
26
+ received_at: { type: 'Int64' },
27
27
  trip_id: { type: 'Nullable(String)' },
28
- updated_at: { type: 'DateTime64(3, \'UTC\') CODEC(Delta, ZSTD)' },
28
+ updated_at: { type: 'Int64' },
29
29
  vehicle_id: { type: 'LowCardinality(Nullable(String))' },
30
30
  };
31
31
  /* * */
@@ -7,7 +7,7 @@ const tableSchema = {
7
7
  _id: { type: 'UUID' },
8
8
  agency_id: { type: 'LowCardinality(String)' },
9
9
  apex_version: { type: 'LowCardinality(String)' },
10
- created_at: { type: 'DateTime64(3, \'UTC\') CODEC(Delta, ZSTD)' },
10
+ created_at: { type: 'Int64' },
11
11
  device_id: { type: 'LowCardinality(String)' },
12
12
  is_ok: { type: 'Bool' },
13
13
  is_ok_pcgi: { type: 'Bool' },
@@ -16,10 +16,10 @@ const tableSchema = {
16
16
  mac_sam_serial_number: { type: 'UInt64' },
17
17
  operational_date: { type: 'UInt32' },
18
18
  pattern_id: { type: 'LowCardinality(Nullable(String))' },
19
- received_at: { type: 'DateTime64(3, \'UTC\') CODEC(Delta, ZSTD)' },
19
+ received_at: { type: 'Int64' },
20
20
  stop_id: { type: 'LowCardinality(Nullable(String))' },
21
21
  trip_id: { type: 'Nullable(String)' },
22
- updated_at: { type: 'DateTime64(3, \'UTC\') CODEC(Delta, ZSTD)' },
22
+ updated_at: { type: 'Int64' },
23
23
  vehicle_id: { type: 'LowCardinality(Nullable(String))' },
24
24
  };
25
25
  /* * */
@@ -9,7 +9,7 @@ const tableSchema = {
9
9
  apex_version: { type: 'LowCardinality(String)' },
10
10
  card_physical_type: { type: 'UInt8' },
11
11
  card_serial_number: { type: 'Nullable(UInt64)' },
12
- created_at: { type: 'DateTime64(3, \'UTC\') CODEC(Delta, ZSTD)' },
12
+ created_at: { type: 'Int64' },
13
13
  device_id: { type: 'LowCardinality(String)' },
14
14
  is_ok: { type: 'Bool' },
15
15
  is_ok_pcgi: { type: 'Bool' },
@@ -23,10 +23,10 @@ const tableSchema = {
23
23
  price: { type: 'Int32' },
24
24
  product_id: { type: 'LowCardinality(Nullable(String))' },
25
25
  product_quantity: { type: 'Int32' },
26
- received_at: { type: 'DateTime64(3, \'UTC\') CODEC(Delta, ZSTD)' },
26
+ received_at: { type: 'Int64' },
27
27
  stop_id: { type: 'LowCardinality(Nullable(String))' },
28
28
  trip_id: { type: 'Nullable(String)' },
29
- updated_at: { type: 'DateTime64(3, \'UTC\') CODEC(Delta, ZSTD)' },
29
+ updated_at: { type: 'Int64' },
30
30
  validation_id: { type: 'Nullable(UUID)' },
31
31
  vehicle_id: { type: 'LowCardinality(Nullable(String))' },
32
32
  };
@@ -9,7 +9,7 @@ const tableSchema = {
9
9
  apex_version: { type: 'LowCardinality(String)' },
10
10
  card_physical_type: { type: 'UInt8' },
11
11
  card_serial_number: { type: 'Nullable(UInt64)' },
12
- created_at: { type: 'DateTime64(3, \'UTC\') CODEC(Delta, ZSTD)' },
12
+ created_at: { type: 'Int64' },
13
13
  device_id: { type: 'LowCardinality(String)' },
14
14
  is_ok: { type: 'Bool' },
15
15
  is_ok_pcgi: { type: 'Bool' },
@@ -24,10 +24,10 @@ const tableSchema = {
24
24
  price: { type: 'Int32' },
25
25
  product_id: { type: 'LowCardinality(Nullable(String))' },
26
26
  product_quantity: { type: 'Int32' },
27
- received_at: { type: 'DateTime64(3, \'UTC\') CODEC(Delta, ZSTD)' },
27
+ received_at: { type: 'Int64' },
28
28
  stop_id: { type: 'LowCardinality(Nullable(String))' },
29
29
  trip_id: { type: 'Nullable(String)' },
30
- updated_at: { type: 'DateTime64(3, \'UTC\') CODEC(Delta, ZSTD)' },
30
+ updated_at: { type: 'Int64' },
31
31
  validation_id: { type: 'Nullable(UUID)' },
32
32
  vehicle_id: { type: 'LowCardinality(Nullable(String))' },
33
33
  };
@@ -9,7 +9,7 @@ const tableSchema = {
9
9
  apex_version: { type: 'LowCardinality(String)' },
10
10
  card_serial_number: { type: 'Nullable(UInt64)' },
11
11
  category: { type: 'LowCardinality(String)' },
12
- created_at: { type: 'DateTime64(3, \'UTC\') CODEC(Delta, ZSTD)' },
12
+ created_at: { type: 'Int64' },
13
13
  device_id: { type: 'LowCardinality(String)' },
14
14
  event_type: { type: 'UInt8' },
15
15
  is_ok: { type: 'Bool' },
@@ -23,11 +23,11 @@ const tableSchema = {
23
23
  operational_date: { type: 'UInt32' },
24
24
  pattern_id: { type: 'LowCardinality(Nullable(String))' },
25
25
  product_id: { type: 'LowCardinality(Nullable(String))' },
26
- received_at: { type: 'DateTime64(3, \'UTC\') CODEC(Delta, ZSTD)' },
26
+ received_at: { type: 'Int64' },
27
27
  stop_id: { type: 'LowCardinality(Nullable(String))' },
28
28
  trip_id: { type: 'Nullable(String)' },
29
29
  units_qty: { type: 'Nullable(Int32)' },
30
- updated_at: { type: 'DateTime64(3, \'UTC\') CODEC(Delta, ZSTD)' },
30
+ updated_at: { type: 'Int64' },
31
31
  validation_status: { type: 'LowCardinality(String)' },
32
32
  vehicle_id: { type: 'LowCardinality(Nullable(String))' },
33
33
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tmlmobilidade/databases",
3
- "version": "20260623.1548.1",
3
+ "version": "20260623.2343.41",
4
4
  "author": {
5
5
  "email": "iso@tmlmobilidade.pt",
6
6
  "name": "TML-ISO"