Now that we know where to store the data, we also have to look into how we store the data. The database model show in Figure 10.1, “SySeEns database model” seems reasonable:

This table holds the actual data. The GUID is what would have been the UID within the data field. TID holds a reference into the types table. LastName is used for speedup as explained in the section called “Special last name handling”. LastMod is used to find out if this object has been changed since the last sync. UID, GID and Permissions are used for access control. Finally, Data holds the actual data in the specified format.