Introduction
Database Structure
Learn about the three layers for organizing your membership data: Affiliations, Subaffiliations, and Divisions.
Affiliations
Affiliations represent the top layer of organization in StewardDB. In relational database terms, they correspond to schemas which are groupings of tables. All tables must appear under an Affiliation.
There is one protected Affiliation in StewardDB: Steward. It cannot be deleted and new tables cannot be created under it. The reason for this is that this schema is used to retain many tables that are crucial for the functioning of the application as a whole. We only surface one of these tables in the Database page, the Directory table, which we will describe in detail in the next section. All other tables under Steward are surfaced throughout the application when you engage with other features.
Subaffiliations
Subaffiliations are tables that appear under Affiliations. Each Subaffiliation has to be created under an Affiliation. The Directory table under the Steward schema is a specialized Subaffiliation table and differs from other Subaffiliation tables in its structure.
The Steward.Directory Table
The Directory table is a special Subaffiliation and is the most central component of our database. This table retains the names and primary contact information for the totality of your membership and these values are global in the application. If you change someone's name anywhere in the application, it will appear so everywhere else. Whenever any new data is uploaded, the Directory table serves as the reference for deciding whether the incoming data represents a new or existing member. It assigns a unique member ID to each new member which you can see under the ID column in the Steward.Directory table. This member ID also appears in every Subaffiliation table you create and ensures that members are never duplicated in any given Subaffiliation table.
Deleting members in the Directory deletes them everywhere and is an irreversible action!
Note that deleting a member in the Directory table will delete them from the whole database. This includes any notes you might have taken on the member and their complete histories. To retain historical data on your members, we recommend you delete members only from your custom Subaffiliation tables and only delete a member from the Directory table if you are sure you will not need their data going forward or when you need to make space for new members to remain within your membership tier.
Subaffiliation Tables
When a custom Subaffiliation table is created, StewardDB will automatically add a series of columns to the table. These columns include:
- ID: Member ID as it appears in the Directory table.
- Division: A specialized column for denoting non-overlapping groups in a Subaffiliation, see below.
- Code: Customizable dropdown menus for campaign assessment codes used for row highlights.
- Last Due Payment On: Date representing the last time a member paid their dues, used to highlight lapsed memberships when a payroll period is selected in the Database page.
- Joined Subaffiliation On: Date member joined the given Subaffiliation, either sourced from your data uploads or registered as the day the data was uploaded.
- Job Classification: Job title for the member within the Subaffiliation.
When you view a Subaffiliation table, you will see your members' basic contact information as it appears in the Directory table alongside the Subaffiliation columns listed above and any other custom columns you have created.
In Subaffiliation tables, you can create custom columns to track campaigns, member activity, etc. They also provide a means for controlling data access for users for whom access to the full database may not be appropriate.
Divisions
Divisions appear in specialized columns in Subaffiliation tables. They can be used to represent non-overlapping groupings such as departments in a workplace or subcommittees in a non-profit chapter. Its purpose is three-fold: First, the Division column allows users the ability to edit a Division name collectively for everyone that might be in that Division. This is meant to save the user from having to update each member's Division value separately when a Division gets renamed. Second, users can take and view notes specific to the Division. See the Notes documentation page for further details. Last but not least, the Division column also presents a means for controlling data access. In cases where you want a user to have access only to a single Division instead of the whole Subaffiliation table, you can do so.
Members
A member is the atomic unit in StewardDB. Each row in every table represents a member. Members can appear in any number of Subaffiliation tables in any Affiliation. Your complete member list can be found in the Directory table under the Steward affiliation, always at the top of the navigation sidebar on the Database page.
Organizational Examples
Deciding how to organize your membership in StewardDB is the most critical step in setting up your database. Here, we provide some examples that might help you decide how to assign your organizational layers to the layers in StewardDB:
- You are a large union organizing nurses working under multiple different employers. Under each employer, you have multiple locals with their own dues structure. In each local, people are divided up into different hospital departments. You are uploading one large dataset with every member in it. Then, pick the Hospital column as your Affiliation, your Local column as your Subaffiliation, your Department column as your Divisions.
- You are a mid-size union organizing journalists in a large city. There are multiple employers that your members work for, each employer corresponds to a local with its own dues structure. Then, enter in your union's name as the Affiliation. Select the Media Company column as your Subaffiliation. Select the Department column for Divisions.
- You are a small union organizing a coffee shop. Everyone has the same dues structure. Enter your union's name as your Affiliation. Enter "Members" as your Subaffiliation name. If there are no departments, simply leave Divisions empty.
- You are a large national non-profit organization with a single dues or donations structure but many chapters. Consider whether lapsed members are contacted by staff at the national level or at the chapter level. If at the chapter level, follow the example of the mid-size union above. If the former, then use the example from the small union with a single dues structure, then create additional Subaffiliation tables to represent your chapters.