trypost/app/Models
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
..
Traits feat: introduce Account entity as billing owner and refactor architecture 2026-04-14 22:22:04 -03:00
Account.php feat: introduce Account entity as billing owner and refactor architecture 2026-04-14 22:22:04 -03:00
ApiToken.php refactor: code review fixes — policies, enums, data_get, tests 2026-03-31 00:40:18 -03:00
Invite.php feat: introduce Account entity as billing owner and refactor architecture 2026-04-14 22:22:04 -03:00
Media.php fix: overhaul social publishing — validation, uploads, token refresh 2026-03-31 19:25:19 -03:00
Notification.php feat: notification system with SendNotification job, dialog UI, tests 2026-03-30 16:47:03 -03:00
NotificationPreference.php refactor: notification preferences, header slots, calendar layout, UI polish 2026-03-30 18:18:17 -03:00
Plan.php feat: introduce Account entity as billing owner and refactor architecture 2026-04-14 22:22:04 -03:00
Post.php refactor: settings redesign, Spanish translations, language system, strict_types 2026-03-30 00:20:43 -03:00
PostPlatform.php feat: add error_context column to post_platforms for structured error debugging 2026-04-01 11:07:21 -03:00
SocialAccount.php feat: introduce Account entity as billing owner and refactor architecture 2026-04-14 22:22:04 -03:00
Subscription.php feat: Implement soft deletes for workspace hashtags and labels, and integrate content_type into the initial post platforms table creation. 2026-01-17 14:44:37 -03:00
SubscriptionItem.php feat: Implement soft deletes for workspace hashtags and labels, and integrate content_type into the initial post platforms table creation. 2026-01-17 14:44:37 -03:00
User.php feat: introduce Account entity as billing owner and refactor architecture 2026-04-14 22:22:04 -03:00
Workspace.php feat: introduce Account entity as billing owner and refactor architecture 2026-04-14 22:22:04 -03:00
WorkspaceHashtag.php refactor: settings redesign, Spanish translations, language system, strict_types 2026-03-30 00:20:43 -03:00
WorkspaceInvite.php refactor: restructure to Actions, subdomain routes (app/api), API tokens 2026-03-29 19:24:28 -03:00
WorkspaceLabel.php refactor: settings redesign, Spanish translations, language system, strict_types 2026-03-30 00:20:43 -03:00