Contents Index Running the Contact sample Users in the Contact sample

MobiLink Synchronization User's Guide
  The Contact Sample Application

Tables in the Contact databases


The table definitions for the Contact database are located in the following files:

Both the consolidated and the remote databases contain the following three tables, although their definition is slightly different in each place.

SalesRep 

Each SalesRep occupies one row in this table. Each remote database belongs to a single sales representative.

In each remote database, SalesRep has the following columns:

In the consolidated database only, there is also a ml_username column holding the MobiLink user name for the representative.

Customer 

This table holds one row for each customer. Each customer is a company with which a single sales representative does business. There is a one-to-many relationship between the SalesRep and Customer tables.

In each remote database, Customer has the following columns:

In the consolidated database, there are two additional columns, last_modified and active:

Contact 

This table holds one row for each contact. A contact is a person who works at a customer company. There is a one-to-many relationship between the Customer and Contact tables.

In each remote database, Contact has the following columns:

In the consolidated database, the table also has the following columns:

Product 

Each product sold by the company occupies one row in the Product table. The Product table is held in a separate publication so that remote databases can synchronize the table separately.

In each remote database, Product has the following columns:

In the consolidated database, the Product table has the following additional columns:

In addition to these tables, a set of tables is created at the consolidated database only. These include the product_conflict table, which is a temporary table used during conflict resolution, and a set of tables for monitoring MobiLink activities owned by a user named mlmaint. Scripts to create the MobiLink monitoring tables are in the file Samples\MobiLink\Contact\mlmaint.sql.


Contents Index Running the Contact sample Users in the Contact sample