UNPKG
create-mf2-app
Version:
latest (1.0.6)
1.0.6
1.0.5
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0
The stack AI moves fast with.
mf2.dev
korrect-ai/create-mf2-app
create-mf2-app
/
cli
/
templates
/
base-fullstack-ai
/
convex
/
rate_limiting
/
tables.ts
10 lines
(8 loc)
•
212 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
import
{ defineTable }
from
"convex/server"
;
import
{ v }
from
"convex/values"
;
export
default
{
usage
:
defineTable
({
userId
: v.
string
(),
totalTokens
: v.
number
(), }).
index
(
"by_user"
, [
"userId"
]), };