snowplow / iglu-central

Contains all JSON Schemas, Avros and Thrifts for Iglu Central
http://iglucentral.com
Apache License 2.0
118 stars 114 forks source link

Create new com.snowplowanalytics.snowplow/user schema #867

Open yalisassoon opened 5 years ago

yalisassoon commented 5 years ago

This is part of a set of upgrades for our mobile SDKs.

The schema should contain the following fields:

bogaert commented 5 years ago

We treat the subscription entity separate from the user entity in our implementations. It can also be helpful to add an optional field for the expiryDate.

yalisassoon commented 5 years ago

Thanks @bogaert - so to clarify - you'd recommend we called this entity "subscription"? (It looks like all the fields relate to the subscription...) Or would you keep userType as a user-level property, and move the others to a subscription entity?

bogaert commented 5 years ago

I'd keep userType as a user-level property (perhaps adding more optional user properties), and moving the others to a subscription entity. Separating the entities allows for a user to have multiple subscriptions.