add courier fields (#10)
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Aadil Ayub 2024-02-25 19:52:11 +05:00
parent 2654b4a9c4
commit ac387d41ad
1 changed files with 29 additions and 4 deletions

View File

@ -10,10 +10,35 @@ const Couriers: CollectionConfig = {
},
fields: [
{
name: 'name', // required
type: 'text', // required
required: true,
},
name: 'name',
type: 'text',
required: true,
},
{
name: 'startingPoint',
label: 'Traveling from',
type: 'text', // TODO use geopicker here
},
{
name: 'destination',
label: 'Traveling to',
type: 'text' // TODO user geopicker here
},
{
name: 'departureDate',
label: 'Departure date',
type: 'date'
},
{
name: 'arrivalDate',
label: 'Arrival date',
type: 'date'
},
{
name: 'weightAllowance',
label: 'Weight Allowance (KG)',
type: 'number'
}
],
};