Account Modes
stackfoundry/account-modesFreeBlock
Personal, team, and hybrid account mode configuration for SaaS apps.
Install it
npx shadcn@latest add https://stackfoundry.dev/r/account-modes.jsonSource
1import { index, jsonb, pgTable, text, timestamp, uuid } from "drizzle-orm/pg-core";23export const accountModes = pgTable(4 "account_modes",5 {6 id: uuid("id").primaryKey().defaultRandom(),7 accountId: text("account_id").notNull(),8 mode: text("mode").notNull().default("personal"),9 status: text("status").notNull().default("active"),10 metadata: jsonb("metadata").$type<Record<string, unknown>>().notNull().default({}),11 createdAt: timestamp("created_at", { withTimezone: true }).defaultNow().notNull(),12 updatedAt: timestamp("updated_at", { withTimezone: true }).defaultNow().notNull(),13 },14 (item) => [index("account_modes_account_idx").on(item.accountId)]15);
What it pulls in
Other registry items
Files it writes
More from stackfoundry
All 157 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Account Deletionaccount-deletion | stackfoundry | Blocks | Free | no deps · 3 files | |
| Account Settingsaccount-settings | stackfoundry | Blocks | Free | no deps · 2 files | |
| Admin Consoleadmin-console | stackfoundry | Blocks | Free | no deps · 2 files | |
| Agent-Ready Installsagent-ready-installs | stackfoundry | Blocks | Free | no deps · 13 files | |
| AI Chatai-chat | stackfoundry | Blocks | Free | 3 deps · 4 files | |
| AI Chatbot SDKai-chatbot-sdk | stackfoundry | Blocks | Free | 3 deps · 2 files | |
| AI Elementsai-elements | stackfoundry | Blocks | Free | no deps · 5 files | |
| AI SDKai-sdk | stackfoundry | Blocks | Free | 2 deps · 2 files |
