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:
Thomas Trompette
2024-02-01 16:56:38 +01:00
committed by GitHub
parent 9799326533
commit 7b2b70e479
7 changed files with 69 additions and 0 deletions

View File

@ -17,6 +17,7 @@ export const seedOpportunity = async (
'closeDate',
'probability',
'stage',
'recordPosition',
'pipelineStepId',
'pointOfContactId',
'companyId',
@ -31,6 +32,7 @@ export const seedOpportunity = async (
closeDate: new Date(),
probability: 0.5,
stage: 'new',
recordPosition: 0,
pipelineStepId: '6edf4ead-006a-46e1-9c6d-228f1d0143c9',
pointOfContactId: '86083141-1c0e-494c-a1b6-85b1c6fefaa5',
companyId: 'fe256b39-3ec3-4fe3-8997-b76aa0bfa408',
@ -43,6 +45,7 @@ export const seedOpportunity = async (
closeDate: new Date(),
probability: 0.5,
stage: 'meeting',
recordPosition: 0,
pipelineStepId: 'd8361722-03fb-4e65-bd4f-ec9e52e5ec0a',
pointOfContactId: '93c72d2e-f517-42fd-80ae-14173b3b70ae',
companyId: '118995f3-5d81-46d6-bf83-f7fd33ea6102',
@ -55,6 +58,7 @@ export const seedOpportunity = async (
closeDate: new Date(),
probability: 0.5,
stage: 'proposal',
recordPosition: 0,
pipelineStepId: '30b14887-d592-427d-bd97-6e670158db02',
pointOfContactId: '9b324a88-6784-4449-afdf-dc62cb8702f2',
companyId: '460b6fb1-ed89-413a-b31a-962986e67bb4',
@ -67,6 +71,7 @@ export const seedOpportunity = async (
closeDate: new Date(),
probability: 0.5,
stage: 'proposal',
recordPosition: 1,
pipelineStepId: '30b14887-d592-427d-bd97-6e670158db02',
pointOfContactId: '98406e26-80f1-4dff-b570-a74942528de3',
companyId: '460b6fb1-ed89-413a-b31a-962986e67bb4',