Skip to content

Commit

Permalink
Merge pull request #479 from mit-27/feat/cursor-pagination
Browse files Browse the repository at this point in the history
Feat: Cursor based Pagination
  • Loading branch information
naelob authored Jun 11, 2024
2 parents 5a98392 + a53062a commit e9d6ea2
Show file tree
Hide file tree
Showing 61 changed files with 1,759 additions and 325 deletions.
3 changes: 2 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ GORGIAS_TICKETING_CLOUD_CLIENT_SECRET=
GORGIAS_TICKETING_CLOUD_SUBDOMAIN=
FRONT_TICKETING_CLOUD_CLIENT_ID=
FRONT_TICKETING_CLOUD_CLIENT_SECRET=

GITLAB_TICKETING_CLOUD_CLIENT_ID=
GITLAB_TICKETING_CLOUD_CLIENT_SECRET=
# ================================================
# Webapp settings
# Must be set in the perspective of the end user browser
Expand Down
36 changes: 18 additions & 18 deletions packages/api/prisma/schema.prisma
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ model crm_companies {
name String?
industry String?
number_of_employees BigInt?
created_at DateTime @db.Timestamp(6)
created_at DateTime @unique(map: "force_createdat_unique_crm_companies") @default(now()) @db.Timestamp(6)
modified_at DateTime @db.Timestamp(6)
remote_id String?
remote_platform String?
Expand All @@ -164,7 +164,7 @@ model crm_contacts {
id_crm_contact String @id(map: "pk_crm_contacts") @db.Uuid
first_name String
last_name String
created_at DateTime @db.Timestamp(6)
created_at DateTime @unique(map: "force_createdat_unique_crm_contacts") @default(now()) @db.Timestamp(6)
modified_at DateTime @db.Timestamp(6)
remote_id String
remote_platform String
Expand All @@ -184,8 +184,8 @@ model crm_deals {
id_crm_deal String @id(map: "pk_crm_deal") @db.Uuid
name String
description String
amount BigInt
created_at DateTime @db.Timestamp(6)
amount BigInt?
created_at DateTime @unique(map: "force_createdat_unique_crm_deals") @default(now()) @db.Timestamp(6)
modified_at DateTime @db.Timestamp(6)
remote_id String?
remote_platform String?
Expand All @@ -207,7 +207,7 @@ model crm_deals {
model crm_deals_stages {
id_crm_deals_stage String @id(map: "pk_crm_deal_stages") @db.Uuid
stage_name String?
created_at DateTime @db.Timestamp(6)
created_at DateTime @unique(map: "force_createdat_unique_crm_deals_stages") @default(now()) @db.Timestamp(6)
modified_at DateTime @db.Timestamp(6)
id_linked_user String? @db.Uuid
remote_id String?
Expand Down Expand Up @@ -251,7 +251,7 @@ model crm_engagements {
subject String?
start_at DateTime? @db.Timestamp(6)
end_time DateTime? @db.Timestamp(6)
created_at DateTime? @db.Timestamp(6)
created_at DateTime @unique(map: "force_createdat_unique_crm_engagements") @default(now()) @db.Timestamp(6)
modified_at DateTime? @db.Timestamp(6)
remote_id String?
id_linked_user String? @db.Uuid
Expand All @@ -269,7 +269,7 @@ model crm_engagements {
model crm_notes {
id_crm_note String @id(map: "pk_crm_notes") @db.Uuid
content String
created_at DateTime @db.Timestamp(6)
created_at DateTime @unique(map: "force_createdat_unique_crm_notes") @default(now()) @db.Timestamp(6)
modified_at DateTime @db.Timestamp(6)
id_crm_company String? @db.Uuid
id_crm_contact String? @db.Uuid
Expand Down Expand Up @@ -312,7 +312,7 @@ model crm_tasks {
status String?
due_date DateTime? @db.Timestamp(6)
finished_date DateTime? @db.Timestamp(6)
created_at DateTime @db.Timestamp(6)
created_at DateTime @unique(map: "force_createdat_unique_crm_tasks") @default(now()) @db.Timestamp(6)
modified_at DateTime @db.Timestamp(6)
id_crm_user String? @db.Uuid
id_crm_company String? @db.Uuid
Expand All @@ -333,7 +333,7 @@ model crm_users {
id_crm_user String @id(map: "pk_crm_users") @db.Uuid
name String?
email String?
created_at DateTime @db.Timestamp(6)
created_at DateTime @unique(map: "force_createdat_unique_crm_users") @default(now()) @db.Timestamp(6)
modified_at DateTime @db.Timestamp(6)
id_linked_user String? @db.Uuid
remote_id String?
Expand Down Expand Up @@ -457,7 +457,7 @@ model tcg_accounts {
name String?
domains String[]
remote_platform String?
created_at DateTime @db.Timestamp(6)
created_at DateTime @unique(map: "force_createdat_unique_tcg_accounts") @default(now()) @db.Timestamp(6)
modified_at DateTime @db.Timestamp(6)
id_linked_user String? @db.Uuid
tcg_contacts tcg_contacts[]
Expand All @@ -471,7 +471,7 @@ model tcg_attachments {
file_name String?
file_url String?
uploader String @db.Uuid
created_at DateTime @db.Timestamp(6)
created_at DateTime @unique(map: "force_createdat_unique_tcg_attachments") @default(now()) @db.Timestamp(6)
modified_at DateTime @db.Timestamp(6)
id_linked_user String? @db.Uuid
id_tcg_ticket String? @db.Uuid
Expand All @@ -491,7 +491,7 @@ model tcg_collections {
remote_platform String?
collection_type String?
parent_collection String? @db.Uuid
created_at DateTime @db.Timestamp(6)
created_at DateTime @unique(map: "force_createdat_unique_tcg_collections") @default(now()) @db.Timestamp(6)
modified_at DateTime @db.Timestamp(6)
id_linked_user String @db.Uuid
}
Expand All @@ -504,7 +504,7 @@ model tcg_comments {
is_private Boolean?
remote_id String?
remote_platform String?
created_at DateTime? @db.Timestamp(6)
created_at DateTime @unique(map: "force_createdat_unique_tcg_comments") @default(now()) @db.Timestamp(6)
modified_at DateTime? @db.Timestamp(6)
creator_type String?
id_tcg_attachment String[]
Expand All @@ -530,7 +530,7 @@ model tcg_contacts {
details String?
remote_id String?
remote_platform String?
created_at DateTime? @db.Timestamp(6)
created_at DateTime @unique(map: "force_createdat_unique_tcg_contacts") @default(now()) @db.Timestamp(6)
modified_at DateTime? @db.Timestamp(6)
id_tcg_account String? @db.Uuid
id_linked_user String? @db.Uuid
Expand All @@ -545,7 +545,7 @@ model tcg_tags {
name String?
remote_id String?
remote_platform String?
created_at DateTime @db.Timestamp(6)
created_at DateTime @unique(map: "force_createdat_unique_tcg_tags") @default(now()) @db.Timestamp(6)
modified_at DateTime @db.Timestamp(6)
id_tcg_ticket String? @db.Uuid
id_linked_user String? @db.Uuid
Expand All @@ -560,7 +560,7 @@ model tcg_teams {
remote_platform String?
name String?
description String?
created_at DateTime @db.Timestamp(6)
created_at DateTime @unique(map: "force_createdat_unique_tcg_teams") @default(now()) @db.Timestamp(6)
modified_at DateTime @db.Timestamp(6)
id_linked_user String? @db.Uuid
}
Expand All @@ -578,7 +578,7 @@ model tcg_tickets {
collections String[]
completed_at DateTime? @db.Timestamp(6)
priority String?
created_at DateTime @db.Timestamp(6)
created_at DateTime @unique(map: "force_createdat_unique_tcg_tickets") @default(now()) @db.Timestamp(6)
modified_at DateTime @db.Timestamp(6)
assigned_to String[]
remote_id String?
Expand All @@ -601,7 +601,7 @@ model tcg_users {
remote_id String?
remote_platform String?
teams String[]
created_at DateTime? @db.Timestamp(6)
created_at DateTime @unique(map: "force_createdat_unique_tcg_users") @default(now()) @db.Timestamp(6)
modified_at DateTime? @db.Timestamp(6)
id_linked_user String? @db.Uuid
tcg_comments tcg_comments[]
Expand Down
Loading

0 comments on commit e9d6ea2

Please sign in to comment.