mdimercurio / dbt_netsuite

Data models for Fivetran's Netsuite connector, built using dbt.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NetSuite SuiteAnalytics

This package models NetSuite SuiteAnalytics data from Fivetran's connector. It uses data in the format described by this ERD.

This dbt package:

  • Recreates both the balance sheet and income statement
  • Recreates commonly used data by using the transaction lines as the base table and joining other data

Requirements

  • A Fivetran NetSuite Analytics connector, with the following tables synced:
    • accounts
    • accounting_periods
    • accounting_books
    • consolidated_exchange_rates
    • currencies
    • customers
    • classes
    • departments
    • expense_accounts
    • income_accounts
    • items
    • locations
    • partners
    • transaction_lines
    • transactions
    • subsidiaries
    • vendors
    • vendor_types

Installation instructions

  1. Include this package in your packages.yml - check our installation guide for installation instructions.

  2. Check the location of your NetSuite data — if it is in a schema named netsuite and in the same database as your target database, no further modification is required. If it is in a different database or schema:

    1. Copy the src_netsuite.yml file into your own project.
    2. Uncomment the schema and the database configurations, updating the values for your own data source.¹
  3. Execute dbt run – the NetSuite models will get built as part of your run!

  4. Execute dbt test — these models include tests to check the output of the models.

Database support

These package can be used on Snowflake, BigQuery, and Redshift.

Contributions

Additional contributions to this package are very welcome! Please create issues or open PRs against master. Check out this post on the best workflow for contributing to a package.

All contributions must be widely relevant to NetSuite customers and not contain logic specific to a given business.

Resources:

About

Data models for Fivetran's Netsuite connector, built using dbt.

License:Apache License 2.0