Skip to content

Commit

Permalink
Update segments spec
Browse files Browse the repository at this point in the history
  • Loading branch information
apata committed Nov 14, 2024
1 parent 514db19 commit 4a62e35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/plausible/segment/segments.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ __*__: if the user has that particular capability
|-------|------|-------------|---------|
| :id | :bigint | null: false | |
| :name | :string | null: false | |
| :personal | :boolean | default: true, null: false | Needed to distinguish between segments that are supposed to be listed site-wide and ones that are listed only for author |
| :type | :enum | default: :personal, null: false | Possible values are :site, :personal. Needed to distinguish between segments that are supposed to be listed site-wide and ones that are listed only for author |
| :segment_data | :map | null: false | Contains the filters array at "filters" key and the labels record at "labels" key |
| :site_id | references(:sites) | on_delete: :delete_all, null: false | |
| :owner_id | references(:users) | on_delete: :nothing, null: false | Used to display author info without repeating author name and email in the database |
Expand Down

0 comments on commit 4a62e35

Please sign in to comment.