mirror of
https://github.com/Kaelio/ktx.git
synced 2026-07-19 11:41:02 +02:00
Initial open-source release
This commit is contained in:
commit
1a42152e6f
1199 changed files with 257054 additions and 0 deletions
43
python/klo-sl/sources/b2b_saas/leads.yaml
Normal file
43
python/klo-sl/sources/b2b_saas/leads.yaml
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
name: leads
|
||||
table: leads
|
||||
grain:
|
||||
- lead_id
|
||||
columns:
|
||||
- name: lead_id
|
||||
type: number
|
||||
- name: account_id
|
||||
type: number
|
||||
- name: converted_at
|
||||
type: time
|
||||
role: time
|
||||
- name: converted_opportunity_id
|
||||
type: number
|
||||
- name: created_at
|
||||
type: time
|
||||
role: time
|
||||
- name: first_touch_at
|
||||
type: time
|
||||
role: time
|
||||
- name: last_touch_at
|
||||
type: time
|
||||
role: time
|
||||
- name: owner_rep_id
|
||||
type: number
|
||||
- name: source
|
||||
type: string
|
||||
- name: utm_campaign
|
||||
type: string
|
||||
- name: utm_medium
|
||||
type: string
|
||||
- name: utm_source
|
||||
type: string
|
||||
joins:
|
||||
- to: accounts
|
||||
'on': account_id = accounts.account_id
|
||||
relationship: many_to_one
|
||||
- to: sales_reps
|
||||
'on': owner_rep_id = sales_reps.rep_id
|
||||
relationship: many_to_one
|
||||
- to: opportunities
|
||||
'on': converted_opportunity_id = opportunities.opportunity_id
|
||||
relationship: many_to_one
|
||||
Loading…
Add table
Add a link
Reference in a new issue