Fieldpine Logo Documentation Home  

Locations PHYSICAL Table Structure

This page contains technical detail about the physical database structure. It is not required for normal day to day operation of the Point Of Sale.

Goto: Documentation Home

Columns

FieldNameDatatypeMeta InfoGnapDescription
location_idlongPrimary Key. Typically Positive, not zero100/EA unique internal id assigned to this location.
namestring101/s
latitudedouble102
longitudedouble103
citystring:48,zerolen104/s
locationstring105/s
address1string:64,zerolen106/s
address2string:64,zerolen107/s
address3string:64,zerolen108/s
address4string:64,zerolen109/s
address5string:64,zerolen110/s
address6string:64,zerolen111/s
commentsstring112/s
ridlong113/E
heartbeatdtdate114/s
zonelong115/E
zidlong116/E
stockinserverbool117/s
stocklevelserverstring:48,zerolen118/s
stocklevelserverportlong119/E
stockflagslong120/E A bitmask indicating stock operation.
  • 1. Location cannot buy stock (as in raise purchase orders) but can receipt stock
  • 2. Location does not maintain stock so cannot receipt stock.
  • 4. Distributed servers can force stock levels into higher levels servers.
companyidlong121/E
activebool122/s
descaddrstring:140,zerolen155/sWeb. A descriptive address used for consumers. eg "Upstairs in Fieldpine Mall, right next to McFieldpine"
phonestring:30,zerolen150/sWeb. Phone number of store for consumers
emailstring:30,zerolen151/sWeb. Email address of store for consumers
pricontactstring:40,zerolen154/sWeb. Primary Contact for consumers. May be name or words and phrases such as "Manager"
intro_enstring:140,zerolen152/sWeb. A descriptive blurb to describe the store, as might be used in a list of stores shown on a web page.
openhoursstring:140,zerolen153/sWeb. Opening hours in free form text.

Indexing

A unique primary key should exist on the location_id field.

Remarks

A value of -1 for location_id is permitted for exceptional circumstances. This is sometimes needed when integrating with external systems. The location numbered -1 should not be used for general use

A value of 0 for a location_id is tolerated but discouraged. Again this can be helpful when integrating external systems. There are some restrictions