Create record position field (#3739)
* Create record field on non syst standard objects + on custom objects * Create workspace migration * Fix naming and add seed --------- Co-authored-by: Thomas Trompette <thomast@twenty.com>
This commit is contained in:
@ -38,6 +38,7 @@ const generateOpportunities = (
|
||||
amountCurrencyCode: 'USD',
|
||||
closeDate: new Date(),
|
||||
stage: getRandomStage(),
|
||||
recordPosition: null,
|
||||
probability: getRandomProbability(),
|
||||
pipelineStepId: getRandomPipelineStepId(pipelineStepIds),
|
||||
pointOfContactId: company.personId,
|
||||
@ -73,6 +74,7 @@ export const seedDemoOpportunity = async (
|
||||
'amountCurrencyCode',
|
||||
'closeDate',
|
||||
'stage',
|
||||
'recordPosition',
|
||||
'probability',
|
||||
'pipelineStepId',
|
||||
'pointOfContactId',
|
||||
|
||||
@ -19,6 +19,7 @@ export const personPrefillData = async (
|
||||
jobTitle: person.jobTitle,
|
||||
city: person.city,
|
||||
avatarUrl: person.avatarUrl,
|
||||
recordPosition: null,
|
||||
companyId: companies[Math.floor(index / 2)].id,
|
||||
}));
|
||||
|
||||
@ -33,6 +34,7 @@ export const personPrefillData = async (
|
||||
'jobTitle',
|
||||
'city',
|
||||
'avatarUrl',
|
||||
'recordPosition',
|
||||
'companyId',
|
||||
])
|
||||
.orIgnore()
|
||||
|
||||
Reference in New Issue
Block a user