JesusFilm / core

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

api-media shortlinks update #4108

Open csiyang opened 1 week ago

csiyang commented 1 week 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 1 week ago

ENG-1320 api-media shortlinks update