Files
polar/example/convex/schema.ts
Shawn Erquhart a9e591fe8d rework apis, add client components (#2)
* wip

* add static example app

* wip

* wip

* use relative path for jsx import

* wip

* working with single upgrade

* add premium plus upgrade cta

* make the ctas pricing page style

* update price tiles

* wip

* add current plan state

* wip

* working checkouts

* add free tier tile

* fix cta button arrows

* fix customer model

* add dummy manage subscription button

* improve subscription manage button

* fix current plan tile state

* revoke existing subscriptions when a new subscription is created

* support upgrade, downgrade, cancel

* add downgrade buttons

* wip

* implement upgrade/cancel functionality

* add downgrade confirmation

* add upgrade confirmation

* add billing settings panel

* wip

* wip

* split out pricing panel section

* fix manage button

* wip

* working

* wip

* differentiate premium plus

* fix price for current subscription

* add prices

* add interval toggle

* wip

* set default interval for change plan screen

* simplify

* add yearly pricing

* fix upgrade/downgrade

* prompt on delete

* wip - docs

* wip

* wip - docs

* wip

* wip

* wip

* wip

* wip

* update version
2025-02-25 13:01:41 -05:00

14 lines
315 B
TypeScript

import { defineSchema, defineTable } from "convex/server";
import { v } from "convex/values";
export default defineSchema({
users: defineTable({
email: v.string(),
}),
todos: defineTable({
userId: v.id("users"),
text: v.string(),
completed: v.boolean(),
}).index("userId", ["userId"]),
});