syntax = "proto3"; package user.v1; message User { // User's uid generated by firebase auth string uid = 1; // User's email string email = 2; // User's account type - source of truth for subscription status AccountType account_type = 3; // User's push token(s) repeated string push_tokens = 4; // User's name string name = 5; } // Possible account type a user can have enum AccountType { // Unspecified account type ACCOUNT_TYPE_UNSPECIFIED = 0; // Free account ACCOUNT_TYPE_FREE = 1; // Paid account - subscription ACCOUNT_TYPE_PREMIUM = 2; } // TODO: Where to store this data? // Possible reasons for account deletion enum DeleteReason { DELETE_REASON_UNSPECIFIED = 0; }