fix: add firstName and lastName to user model (#473)

* fix: add firstname and lastanme to user model

* fix: avoid undefined in displayName resolve field

* fix: user firstName and lastName instead of firstname lastname

* fix: person table proper naming firstName lastName

* fix: migrate front with firstName and lastName

* fix: make front-graphql-generate not working
This commit is contained in:
Jérémy M
2023-06-29 17:11:15 +02:00
committed by GitHub
parent d9af205ccb
commit 097b278b11
100 changed files with 606 additions and 329 deletions

View File

@ -5,7 +5,8 @@ export const seedUsers = async (prisma: PrismaClient) => {
update: {},
create: {
id: 'twenty-ge256b39-3ec3-4fe3-8997-b76aa0bfc102',
displayName: 'Tim Apple',
firstName: 'Tim',
lastName: 'Apple',
email: 'tim@apple.dev',
passwordHash:
'$2a$10$p2Pqc80JZX6bx/PkZJkC9OA/AasSHM7PMBk7mR3PCM0XSeKwDtwNa', // applecar2025
@ -30,7 +31,8 @@ export const seedUsers = async (prisma: PrismaClient) => {
update: {},
create: {
id: 'twenty-ge256b39-3ec3-4fe3-8997-b76aa0bfa408',
displayName: 'Jony Ive',
firstName: 'Jony',
lastName: 'Ive',
email: 'jony.ive@apple.dev',
locale: 'en',
avatarUrl:
@ -49,7 +51,8 @@ export const seedUsers = async (prisma: PrismaClient) => {
update: {},
create: {
id: 'twenty-gk256b39-3ec3-4fe3-8997-b76aa0bfa408',
displayName: 'Phil Schiler',
firstName: 'Phil',
lastName: 'Schiler',
email: 'phil.schiler@apple.dev',
locale: 'en',
avatarUrl:
@ -68,7 +71,8 @@ export const seedUsers = async (prisma: PrismaClient) => {
update: {},
create: {
id: 'twenty-dev-gk256b39-3ec3-4fe3-8997-b76aa0boa408',
displayName: 'Charles Bochet',
firstName: 'Charles',
lastName: 'Bochet',
email: 'charles@twenty.dev',
locale: 'en',
workspaceMember: {