Update monitoring PF competitor tracking
This commit is contained in:
@@ -76,6 +76,22 @@ type PricePoint struct {
|
||||
RecordedAt *string `json:"recorded_at"`
|
||||
}
|
||||
|
||||
type TeamOverviewRow struct {
|
||||
EmployeeID int64 `json:"employee_id"`
|
||||
EmployeeName string `json:"employee_name"`
|
||||
PortalUserID *string `json:"portal_user_id"`
|
||||
TelegramLinked bool `json:"telegram_linked"`
|
||||
ProjectID *int64 `json:"project_id"`
|
||||
ProjectTitle *string `json:"project_title"`
|
||||
DealType *string `json:"deal_type"`
|
||||
DLDPermit *string `json:"dld_permit"`
|
||||
LastCheckedAt *string `json:"last_checked_at"`
|
||||
ListingsTotal int64 `json:"listings_total"`
|
||||
ListingsActive int64 `json:"listings_active"`
|
||||
ListingsRemoved int64 `json:"listings_removed"`
|
||||
MinCompetitorPrice *float64 `json:"min_competitor_price"`
|
||||
}
|
||||
|
||||
func OpenApp(ctx context.Context, cfg Config) (*App, error) {
|
||||
db, err := sql.Open("sqlite", sqliteDSN(cfg.DatabaseURL))
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user