trypost/app/Enums
Paulo Castellano 2da15df96c feat: introduce Account entity as billing owner and refactor architecture
- Create Account model as Cashier Billable entity (stripe, plan, subscription)
- Account owns workspaces and has an owner_id (User)
- User belongs to one Account via account_id
- Workspace belongs to Account via account_id, no longer has billing fields
- Remove Brand model entirely (workspaces serve as grouping)
- Rename brand_limit to workspace_limit in plans
- Workspace roles simplified: admin/member/viewer (owner via Account)
- Invites now belong to Account with workspaces JSON array
- Pennant features scope changed from Workspace to Account
- EnsureSubscribed middleware checks Account subscription
- All controllers updated: BillingController, OnboardingController,
  WorkspaceInviteController, SocialController, StripeEventListener
- Frontend: extract GoogleAuthButton component, create WorkspaceRole
  enum for type-safe role checks, fix all views for new architecture
- All 1101 tests passing
2026-04-14 22:22:04 -03:00
..
ApiToken refactor: code review fixes — policies, enums, data_get, tests 2026-03-31 00:40:18 -03:00
Media refactor: settings redesign, Spanish translations, language system, strict_types 2026-03-30 00:20:43 -03:00
Notification feat: post published notification, notification preferences prep 2026-03-30 17:23:36 -03:00
Plan feat: create plans table, model, and slug enum 2026-04-14 17:53:12 -03:00
Post refactor: code review fixes — policies, enums, data_get, tests 2026-03-31 00:40:18 -03:00
PostPlatform chore: working 2026-04-02 17:57:06 -03:00
SocialAccount chore: working 2026-04-02 17:57:06 -03:00
User fix: Stripe webhook setup completion, notifications routing, billing UI 2026-03-31 13:52:36 -03:00
UserWorkspace feat: introduce Account entity as billing owner and refactor architecture 2026-04-14 22:22:04 -03:00