MCPcopy Index your code
hub / github.com/Linen-dev/linen.dev / createAccount

Function createAccount

packages/factory/src/create/account.ts:3–13  ·  view source on GitHub ↗
(
  options?: Partial<accounts>
)

Source from the content-addressed store, hash-verified

1import { AccountType, prisma, accounts } from '@linen/database';
2
3export default async function createAccount(
4 options?: Partial<accounts>
5): Promise<accounts> {
6 return prisma.accounts.create({
7 data: {
8 type: AccountType.PUBLIC,
9 name: 'Linen',
10 ...options,
11 },
12 });
13}

Calls 1

createMethod · 0.45

Tested by

no test coverage detected