CustomerState
Defined in: src/schema.ts:111
Everything stored for one customer (state storage, customers/{id}).
Properties
Section titled “Properties”| Property | Type | Description | Defined in |
|---|---|---|---|
createdAt |
string |
- | src/schema.ts:124 |
email? |
string |
- | src/schema.ts:115 |
grants |
Grant[] |
- | src/schema.ts:117 |
id |
string |
Your user / organization / workspace id. | src/schema.ts:113 |
metadata |
JsonObject |
- | src/schema.ts:123 |
name? |
string |
- | src/schema.ts:114 |
overrides |
Override[] |
- | src/schema.ts:118 |
providers |
Record<string, string> |
provider → provider customer id. | src/schema.ts:120 |
revision |
number |
Incremented on every write (optimistic concurrency). | src/schema.ts:127 |
subscriptions |
Subscription[] |
- | src/schema.ts:116 |
trials |
Record<string, string> |
plan key → ISO time a trial was started (one trial per plan). | src/schema.ts:122 |
updatedAt |
string |
- | src/schema.ts:125 |