@adaptware/eagles-db 0.5.9 → 0.5.11

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
  {
2
- "name": "prisma-client-8c4fb249603c75bf81e2b2e2e46340b6c3df9587d7fef88ff579f35984c2fb13",
2
+ "name": "prisma-client-e3406c5520e0285755d51d52a50ca7ccbd00cd4d46bd810774ebf53f89cc6cfa",
3
3
  "main": "index.js",
4
4
  "types": "index.d.ts",
5
5
  "browser": "default.js",
@@ -3868,6 +3868,45 @@ model Transcript {
3868
3868
  @@schema("public")
3869
3869
  }
3870
3870
 
3871
+ /// Orion workflow names bundled in license — excluded from ai.cost metering.
3872
+ /// Future license plans will reference subsets of this catalogue.
3873
+ model LicenseIncludedWorkflow {
3874
+ id String @id @default(uuid())
3875
+ workflow_name String @unique
3876
+ created_at DateTime @default(now())
3877
+ updated_at DateTime @updatedAt
3878
+ created_by String @default("system")
3879
+ updated_by String @default("system")
3880
+ is_active Boolean @default(true)
3881
+
3882
+ @@map("license_included_workflows")
3883
+ @@schema("usage")
3884
+ }
3885
+
3886
+ model UsageAggregate {
3887
+ id String @id @default(uuid())
3888
+ organisation_id String
3889
+ metric_key String
3890
+ dimension_hash String
3891
+ dimensions Json
3892
+ total_quantity Decimal
3893
+ period_start DateTime?
3894
+ period_end DateTime?
3895
+ created_at DateTime @default(now())
3896
+ updated_at DateTime @updatedAt
3897
+ created_by String @default("system")
3898
+ updated_by String @default("system")
3899
+ is_active Boolean @default(true)
3900
+
3901
+ organisation Organisation @relation(fields: [organisation_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
3902
+ metric UsageMetricDefinition @relation(fields: [metric_key], references: [key], onDelete: Restrict, onUpdate: Cascade)
3903
+
3904
+ @@unique([organisation_id, metric_key, dimension_hash, period_start])
3905
+ @@index([organisation_id, metric_key])
3906
+ @@map("usage_aggregates")
3907
+ @@schema("usage")
3908
+ }
3909
+
3871
3910
  enum UsageUnit {
3872
3911
  COUNT
3873
3912
  BYTES
@@ -3893,23 +3932,6 @@ enum UsageSourceType {
3893
3932
  @@schema("usage")
3894
3933
  }
3895
3934
 
3896
- model UsageMetricDefinition {
3897
- id String @id @default(uuid())
3898
- key String @unique
3899
- name String
3900
- unit UsageUnit
3901
- aggregation_type UsageAggregationType
3902
- metadata Json?
3903
- created_at DateTime @default(now())
3904
- updated_at DateTime @updatedAt
3905
-
3906
- ledger_entries UsageLedgerEntry[]
3907
- aggregates UsageAggregate[]
3908
-
3909
- @@map("usage_metric_definitions")
3910
- @@schema("usage")
3911
- }
3912
-
3913
3935
  model UsageLedgerEntry {
3914
3936
  id String @id @default(uuid())
3915
3937
  organisation_id String
@@ -3923,6 +3945,10 @@ model UsageLedgerEntry {
3923
3945
  resource_type String?
3924
3946
  resource_id String?
3925
3947
  created_at DateTime @default(now())
3948
+ updated_at DateTime @default(now()) @updatedAt
3949
+ created_by String @default("system")
3950
+ updated_by String @default("system")
3951
+ is_active Boolean @default(true)
3926
3952
 
3927
3953
  organisation Organisation @relation(fields: [organisation_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
3928
3954
  metric UsageMetricDefinition @relation(fields: [metric_key], references: [key], onDelete: Restrict, onUpdate: Cascade)
@@ -3933,35 +3959,23 @@ model UsageLedgerEntry {
3933
3959
  @@schema("usage")
3934
3960
  }
3935
3961
 
3936
- model UsageAggregate {
3937
- id String @id @default(uuid())
3938
- organisation_id String
3939
- metric_key String
3940
- dimension_hash String
3941
- dimensions Json
3942
- total_quantity Decimal
3943
- period_start DateTime?
3944
- period_end DateTime?
3945
- updated_at DateTime @updatedAt
3946
-
3947
- organisation Organisation @relation(fields: [organisation_id], references: [id], onDelete: Cascade, onUpdate: Cascade)
3948
- metric UsageMetricDefinition @relation(fields: [metric_key], references: [key], onDelete: Restrict, onUpdate: Cascade)
3949
-
3950
- @@unique([organisation_id, metric_key, dimension_hash, period_start])
3951
- @@index([organisation_id, metric_key])
3952
- @@map("usage_aggregates")
3953
- @@schema("usage")
3954
- }
3962
+ model UsageMetricDefinition {
3963
+ id String @id @default(uuid())
3964
+ key String @unique
3965
+ name String
3966
+ unit UsageUnit
3967
+ aggregation_type UsageAggregationType
3968
+ metadata Json?
3969
+ created_at DateTime @default(now())
3970
+ updated_at DateTime @updatedAt
3971
+ created_by String @default("system")
3972
+ updated_by String @default("system")
3973
+ is_active Boolean @default(true)
3955
3974
 
3956
- /// Orion workflow names bundled in license — excluded from ai.cost metering.
3957
- /// Future license plans will reference subsets of this catalogue.
3958
- model LicenseIncludedWorkflow {
3959
- id String @id @default(uuid())
3960
- workflow_name String @unique
3961
- created_at DateTime @default(now())
3962
- updated_at DateTime @updatedAt
3975
+ ledger_entries UsageLedgerEntry[]
3976
+ aggregates UsageAggregate[]
3963
3977
 
3964
- @@map("license_included_workflows")
3978
+ @@map("usage_metric_definitions")
3965
3979
  @@schema("usage")
3966
3980
  }
3967
3981