CAFECA-IO / iSunFA

Artificial Intelligence in Financial
https://isunfa.com
GNU General Public License v3.0
0 stars 0 forks source link

getAllReports , getReportById api #914

Closed gibbs-shih closed 4 months ago

gibbs-shih commented 4 months ago

getAllReports(兩個:pending, generated) , getReportById api

gibbs-shih commented 4 months ago

新增及修改 schema 更新db CleanShot 2024-05-29 at 16 49 29 CleanShot 2024-05-29 at 17 19 52

model project {
  id               Int         @id @default(autoincrement())
  companyId        Int         @map("company_id")
  name             String
  completedPercent Int         @map("completed_percent")
  stage            String
  totalExpense     Int?
  totalIncome      Int?
  imageId          String?
  assets           asset[]
  cashflow         cashflow[]
  contracts        contract[]
  invoices         invoice[]
  journals         journal?
  milestones       milestone[]
  company          company     @relation(fields: [companyId], references: [id])
  sales            sale[]
  values           value[]
  workRates        workRate[]
  report           report[]
}
model report {
  id        Int     @id @default(autoincrement())
  createdAt Int     @map("created_at")
  name      String
  periodFrom Int
  periodTo   Int
  type      String
  reportType String
  status    String
  remainingSeconds Int?
  paused Boolean?
  projectId Int?
  reportLink String?
  downloadLink String?
  blockChaonExplorerLink String?
  evidenceId String?
  project project?  @relation(fields: [projectId], references: [id])
}
gibbs-shih commented 4 months ago

R040001 - GET /company/:companyId/report_generated - ISFMK00066

R050001 - GET /company/:companyId/report_pending - ISFMK00066

新增:(Interface: IReport) R060001 - GET /company/:companyId/report/:reportId - ISFMK00022

gibbs-shih commented 4 months ago
gibbs-shih commented 4 months ago
gibbs-shih commented 4 months ago
gibbs-shih commented 4 months ago
gibbs-shih commented 4 months ago
gibbs-shih commented 4 months ago
gibbs-shih commented 4 months ago

take about 15 hr