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

Function createUser

packages/factory/src/create/user.ts:3–17  ·  view source on GitHub ↗
(
  options?: Partial<users>
)

Source from the content-addressed store, hash-verified

1import { users, prisma } from '@linen/database';
2
3export default async function createUser(
4 options?: Partial<users>
5): Promise<users> {
6 return prisma.users.create({
7 data: {
8 displayName: 'John Doe',
9 profileImageUrl: 'https://foo.com/assets/images/john_doe.svg',
10 externalUserId: null,
11 isAdmin: false,
12 isBot: false,
13 accountsId: '1',
14 ...options,
15 },
16 });
17}

Callers 10

public.test.tsFile · 0.90
anonymized.test.tsFile · 0.90
private.test.tsFile · 0.90
search.test.tsFile · 0.90
index.test.tsFile · 0.90
createFunction · 0.70

Calls 1

createMethod · 0.45

Tested by

no test coverage detected