Skip to content

Commit

Permalink
models: (reportfull) Update completed TODOs, update docs
Browse files Browse the repository at this point in the history
See #118
  • Loading branch information
5HT2 committed Apr 11, 2023
1 parent 4c1a111 commit 3f9706b
Showing 1 changed file with 10 additions and 12 deletions.
22 changes: 10 additions & 12 deletions models/reportfull.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,16 @@ import (
type ReportFull struct {
types.Context
Unique
Account uuid.UUID `json:"account_id" db:"account_id"` // References the account that created this report.
Created Timestamp `json:"creation_time" db:"creation_time"`
LastModified Timestamp `json:"modified_time" db:"modified_time"`
Date Timestamp `json:"report_date" db:"report_date"`
//Source URL `json:"source_url" db:"source_url"` // TODO
//Effects []Effect // TODO
//Submitter Submitter // TODO
Title string `json:"title" db:"title"` // Required.
Setting string `json:"setting,omitempty" db:"setting"` // Optional.
Sources ReportSources `json:"report_sources,omitempty"` // Saved in the report_sources table and appended manually.
Subject *ReportSubject `json:"report_subject,omitempty"` // Saved in the report_subjects table and appended manually.
Events ReportEvents `json:"report_events,omitempty"` // Saved in the report_events table and appended manually.
Account uuid.UUID `json:"account_id" db:"account_id"` // References the account that created this report.
Created Timestamp `json:"creation_time" db:"creation_time"` // Required, set when creating a report.
LastModified Timestamp `json:"modified_time" db:"modified_time"` // Required, defaults to Created and set when modifying a report.
Date Timestamp `json:"report_date" db:"report_date"` // Required.
Title string `json:"title" db:"title"` // Required.
Setting string `json:"setting,omitempty" db:"setting"` // Optional.
Sources ReportSources `json:"report_sources,omitempty"` // Saved in the report_sources table and appended manually.
Subject *ReportSubject `json:"report_subject,omitempty"` // Saved in the report_subjects table and appended manually.
Events ReportEvents `json:"report_events,omitempty"` // Saved in the report_events table and appended manually.
//Effects []Effect // TODO: #118
}

func (r *ReportFull) Get() (*ReportFull, error) {
Expand Down

0 comments on commit 3f9706b

Please sign in to comment.