JesusFilm / core

JFP DS Engineering Monorepo
https://docs.core.jesusfilm.org/
17 stars 12 forks source link

api-media shortlinks update #4108

Open csiyang opened 2 days ago

csiyang commented 2 days ago

new data model for api-media

new api's to handle short links for api-media

add field to api-journeys to store ShortLink id

model ShortlinkDomain {
  id String @id @default(uuid())
  domain String @unique
  createdAt DateTime @default(now())
  updatedAt DateTime @updatedAt
  shortlinks Shortlink[]
}

model Shortlink {
  id String @id @default(uuid())
  to String
  domain ShortlinkDomain @relation(fields: [shortlinkDomainId], references: [id])
  createdAt DateTime @default(now())
  updatedAt DateTime @updatedAt
  shortlinkDomainId String
  userId String
  service Service
}
linear[bot] commented 2 days ago

ENG-1320 api-media shortlinks update