Sei sulla pagina 1di 54

ChangeLog

Version Author
2013.05.30 #1 PPlagnol
2013.06.02 #1 PPlagnol
2013.09.29 #1 PPlagnol
2013.10.08 #1 PPlagnol
2013.11.08 #1 PPlagnol
2013.11.13 #1 PPlagnol
Description
First version
Add comments and sourcing
update table name, columns and database design
Add gs1_gcp_length and nutrition_us
Change Modelisation, add gs1_gcp_rc, delete fields
Replace "group" by "owner" and add BSIN in brand table
Modelisation

Manufacurer
Webistes

GS1_GPC_RC

FACT

DIMENSION

Manufacturer Sourcing

Sourcing GS1

Manual
PKG_TYPE

curer
s

NUTRITION_US

GTIN

S1_GPC_RC GS1_GPC_HIER

GS1_GPC GS1_GCP

GS1 GSMP GEPIR

http://www.gs1.org/gsmp/kc/gp http://gepir.gs1.org/V31/
c
PE

BRAND_TYPE

BRAND BRAND_OWNER

CP GS1_GCP_LENGTH GS1_PREFIX

GCP Length Tool GS1 Website

1/ http://www.gs1.org/gcp_length http://www.gs1.org/barcodes/supp
ort/prefix_list
Future Brand
manager

(crowd
sourcing)

WNER

des/supp
Table - GTIN
This table contains all items identified by GTIN-13 code
Field Type PK / FK

GTIN_CD varchar(13) PK

GTIN_LEVEL_CD int

GCP_CD varchar(13) FK
BRAND_CD int FK
GPC_S_CD varchar(8) FK
GPC_F_CD varchar(8) FK
GPC_C_CD varchar(8) FK
GPC_B_CD varchar(8) FK
GTIN_NM varchar(255)
PRODUCT_LINE varchar(255)
M_G float
M_OZ float
M_ML float
M_FLOZ float
M_ABV float
M_ABW float
PKG _UNIT int
PKG_TYPE_CD int FK
PKG_TYPE_NM varchar(255)
REF_CD varchar(255)
GTIN-13 code
Definition
GTIN code of 13 digits (for US and Canada : 12
digits prexifed with 0)

Level of the GTIN in a supply chain point of view: the


gtin_cd can be assigned to a carton or a palett. The
cartoon are sold to professional

GCP code
Brand Code
GPC segment code
GPC family code
GPC class code
GPC brick code
Commercial name of the product
Product line
Measure - weight - Gramme
Measure - weight - Once
Measure - volume - millilitres
Measure - volume - Fluid Once
Measure - Alcool - Alcohol by volume
Measure - Alcool - Alcohol by weight
Number of units in the product
Code of the packaging
Name of the packaging
Internal reference for the manufacturer
Examples / Remarks

1: commercial unit
2: cartoon
3: palett

the 4 fields a in this table because in many case, we just assigned the segment of segment + fami

Defined manually by POD


mesure concerns the internal unit , not the full pack
mesure concerns the internal unit , not the full pack
mesure concerns the internal unit , not the full pack
mesure concerns the internal unit , not the full pack
expressed in % or (same thing) - see http://en.wikipedia.org/wiki/Alcohol_by_volume
Used for some US products - expressed in % or (same thing)
ex: 6 bottles in a commercialized pack (to be able to display 6 x 330ml )
not feed - will be separated into 2 or 3 fields (shape, material,)
not feed
not feed
Table - GS1_GCP
Table listing all GCP and the corresponding GLN (not normalized for the mom
Field Type PK / FK

GCP_CD varchar(13) PK

GLN_CD varchar(13)
GLN_NM varchar(255)
GLN_ADDR_02 varchar(38)
GLN_ADDR_03 varchar(38)
GLN_ADDR_04 varchar(38)
GLN_ADDR_POSTAL_CODE varchar(38)

GLN_ADDR_CITY varchar(38)

CONTACT_NAME varchar(255)
CONTACT_TEL varchar(255)
CONTACT_HOTLINE varchar(255)
CONTACT_FAX varchar(255)
CONTACT_MAIL varchar(255)
CONTACT_WEB varchar(255)
GLN_LAST_CHANGE varchar(10)
GLN_PROVIDER varchar(13)
GEPIR_GCP_CD varchar(13)
ADD_PARTY_ID varchar(13)
RETURN_CODE varchar(3) FK
SOURCE varchar(100)
SYNC_DT DATE TIME
g GLN (not normalized for the moment,)
Definition
GCP Code : first digits of the GTIN Code assigned
to a manufacturer by GS1
GLN Code of the GEPIR
GLN Name (compagny belonging the GCP)
Address ligne 2
Address ligne 3
Address ligne 4
CP

City

Name of the contact


Telephone
Hot Line
Fax
Email address
Website address
Date of last change
GLN of the GS1 organization providing the GLN
GCP returned by the GEPIR

Return Code
Source of the data
Synchronition date with GEPIR
Examples / Remarks

A GLN can have several GCP (ex: Andros has

Iso code (this country code is administrative but could be used to get the "country of the owner"
the US codes (starting with 0) have been used by all the countries before that gtin 13 exists, so f
code is sometime different of US.

Becareful, these fields could not contain the the mail , tel or fax : bug in the script during importati
becarful to the format, could be different, to check,

GEPIR can return a GCP which don't match with the first digits of the GTIN

see gs1_gcp_rc to have the correspondance


'GEPIR' (this field can be used if the GEPIR is not correct or return a code 2 for an existing GCP)
sourcing

POD GTIN table

GEPIR (via SOAP)


GEPIR (via SOAP)
GEPIR (via SOAP)
GEPIR (via SOAP)
GEPIR (via SOAP)
GEPIR (via SOAP)

GEPIR (via SOAP)

GEPIR (via SOAP)


GEPIR (via SOAP)
GEPIR (via SOAP)
GEPIR (via SOAP)
GEPIR (via SOAP)
GEPIR (via SOAP)
GEPIR (via SOAP)
GEPIR (via SOAP)
GEPIR (via SOAP)
GEPIR (via SOAP)
GEPIR (via SOAP)
Table - GS1_GCP_RC
Table listing all return codes of the GEPIR and those created by POD for data
Field Type PK / FK
RETURN_CODE varchar(3) PK
RETURN_NAME varchar(255)

ORIGIN varchar(255)
and those created by POD for data quality matters
Definition
Return Code
Meaning of the return code

Indicates if the code is from GS1 or created by POD


matters
Examples / Remarks
sourcing
Table - GPC length --- DON T USE THIS TABLE
This table contains the content of the GCP Length tool of GS1 (http://www
Field Type PK / FK
FIRST_DIGITS varchar(13) PK
LENGTH Int

Remark: 2013-10-08 this tool is not 100% done (1 MO is missing). This is a very important too
The field length hase been created several months ago in the table GS1_PREFIX because this
SE THIS TABLE
GCP Length tool of GS1 (http://www.gs1.org/gcp_length)
Definition
First digits of the GTIN code
Length of the GCP in number of digits

1 MO is missing). This is a very important tool to apply quality check on the GCP repository and to collect dat
hs ago in the table GS1_PREFIX because this tool was not existing.
g/gcp_length)
Examples / Remarks

y quality check on the GCP repository and to collect data from GEPIR
not existing.
Sourcing
http://www.gs1.org/gcp_length
http://www.gs1.org/gcp_length

data from GEPIR


Table - GPC
This table contains all label of GPC classification codes in several langages
Field Type PK / FK

GPC_LANG varchar(3) PK

GPC_CD varchar(8) PK
GPC_NM varchar(255)

GPC_LEVEL varchar(1)

SOURCE varchar(255)

GS1 GSMP http://www.gs1.org/gsmp/kc/gpc


fication codes in several langages
Definition

Langage of the label using ISO codification

GPC Code
GPC Label

Level in term of hierarchy

GPC release

smp/kc/gpc
Examples / Remarks Sourcing

Ex: JA = Japan, FR = France GEPIR (via SOAP)

GEPIR (via SOAP)


GEPIR (via SOAP)
S' : Segment
'F' : Family
GEPIR (via SOAP)
'C' : Class
'B' : Brick

ex: GPC as at 01/06/2012 GEPIR (via SOAP)


Table - GPC_HIER
This table contains the hierarchy between segment, family, class and brick o
Field Type PK / FK
GPC_B_CD varchar(8) PK
GPC_C_CD varchar(8)
GPC_F_CD varchar(8)
GPC_S_CD varchar(8)

GS1 GSMP http://www.gs1.org/gsmp/kc/gpc


n segment, family, class and brick of the GPC classification
Definition
GPC brick code - lowest level
GPC class code
GPC family code
GPC segment code - highest level

smp/kc/gpc
GPC classification
Examples / Remarks Sourcing
GEPIR (via SOAP)
GEPIR (via SOAP)
GEPIR (via SOAP)
GEPIR (via SOAP)
Table - GS1_COUNTRY
List of 3 first possible digits with the corresponding GS1 registration office an
Field Type PK / FK

PREFIX_CD varchar(3) PK

PREFIX_NM varchar(255)

COUNTRY_ISO_CD varchar(11)

GCP_LENGTH int

GS1 Website http://www.gs1.org/barcodes/support/prefix_list


esponding GS1 registration office and country
Definition
3 first digits of the gtin code indicates the gs1
office of registration
Name of the GS1 office of registration

Iso country code of the gs1 office

The number of the digit for the GCP is between 6


and 10 digits
ntry
Examples / Remarks

ex: 301

ex: GS1 France


ex: 'US'
'WW' means world wide (used for books : codes starting with 97)

The number stored is just one of the possible size of the GCP for the prefixe
Sourcing

GS1

GS1

GS1 / POD

GS1 / POD
Table - BRAND
List of brands
Field Type PK / FK
BRAND_CD int PK
BSIN Char(6)
BRAND_NM varchar(255)
OWNER_CD int FK

BRAND_TYPE_CD int

BRAND_LINK varchar(255)
Definition
Code of the brand
Brand Single Identificattion Number
Name of the brand
Code of the brand owner

Type of brand

Website of the brand


Examples / Remarks
This code is specific for POD, created and assigned manually

Null if the brand doesn't belong to a group


1: manufacturer-brand,
2 :retailer-brand,
3: GLN must be check before to assign a brand
stored without the 'http://'
Sourcing
Manual (Specific to POD)
Manual (Specific to POD)
Manual
Manual (Specific to POD)

Manual (Specific to POD)

Manual
Table - BRAND OWNER
List of owners
Field Type PK / FK
OWNER_CD int PK
OWNER_NM varchar(255)
OWNER_LINK varchar(255)

OWNER_WIKI_EN varchar(255)
Definition
Code of the brand owner
Name of the brand owner
URL of the website
page of wiki english (end of the url
http://en.wikipedia.org/wiki/*****)
Examples / Remarks
This code is specific for POD, created and assigned manually

several website could exist,

http://en.wikipedia.org/wiki/ + value of the field


Sourcing
Manual (Specific to POD)
Manual
Manual (Specific to POD)

Manual (Specific to POD)


Table - BRAND_TYPE
Codification table for the brand type
Field Type PK / FK

BRAND_TYPE_CD int PK

BRAND_TYPE_NM varchar(255)
Definition

Code of the type of brand

Name of the type of brand


Examples / Remarks
1: manufacturer-brand,
2 :retailer-brand,
3: GLN must be check before to assign a brand
Sourcing

Manual (Specific to POD)

Manual (Specific to POD)


Table - PKG_TYPE
This table will be rebuild to distinguish concepts of shape (bottle, can, jar
Field Type PK / FK
PKG_TYPE_CD PK
PKG_TYPE_NM
PKG_TYPE_DESC

This table will be rebuild to distinguish concepts of shape


concepts of shape (bottle, can, jar,) and material (glass, plastic,)
Definition
Packaging type
name of packaging type
desc of packagiing type

ll be rebuild to distinguish concepts of shape (bottle, can, jar,) and material (glass, plastic,)
d material (glass, plastic,)
Examples / Remarks

can, jar,) and material (glass, plastic,)


Table - NUTRITION_US
This table contains elements of the U.S. Nutrition Facts Label required by
Field Type PK / FK
GTIN_CD varchar(13) PK
INGREDIENTS Text
SERV_SIZE_G Float
SERV_SIZE_ML Float
SERV_CT Float
CAL Float
CAL_FROM_FAT Float
TOT_FAT_G Float
TOT_FAT_DV Float
SAT_FAT_G Float
SAT_FAT_DV Float
TRANS_FAT_G Float
CHOL_MG Float
CHOL_DV Float
SOD_MG Float
SOD_DV Float
TOT_CARB_G Float
TOT_CARB_DV Float
DIET_FIBER_G Float
DIET_FIBER_DV Float
SUGARS_G Float
PROTEIN_G Float
VITAMIN_A Float
VITAMIN_C Float
CALCIUM Float
IRON Float
SOURCE Text
SYNC_DT Date

http://www.fda.gov/Food/GuidanceRegulation/GuidanceDocumentsRegulatoryInformation/Labelin
S. Nutrition Facts Label required by FDA
Definition
GTIN Code
List of ingredients
Serving Size (g)
Serving Size (ml)
Serving Per Container
Calories
Calories from Fat
Total Fat (g)
Total Fat (% DV)
Saturated Fat (g)
Saturated Fat (% DV)
Trans Fat (g)
Cholesterol (g)
Cholesterol (% DV)
Sodium (g)
Sodium (% DV)
Total Carbohydrate (% g)
Total Carbohydrate (% DV)
Dietary Fiber (g)
Dietary Fiber (% DV)
Sugars (g)
Protein (g)
Vitamin A (%)
Vitamin C (%)
Calcium (%)
Iron (%)
URL of manufacturer source
Date of synchronization with the source

ceDocumentsRegulatoryInformation/LabelingNutrition/ucm064904.htm
Examples / Remarks

n/ucm064904.htm
GTIN_CD GTIN_LEVEL_ GCP_CD BRAND_CD BRAND_NM BRAND_TYPE_
30453200001 1 304532 46 Andros 1
30453200004 1 304532 46 Andros 1
30453200004 1 304532 46 Andros 1
30453200004 1 304532 46 Andros 1
30453200005 1 304532 46 Andros 1
30453200071 1 304532 46 Andros 1
30453200072 1 304532 46 Andros 1
30453200083 1 304532 46 Andros 1
30453200084 1 304532 46 Andros 1
30453200084 1 304532 46 Andros 1
30453200085 1 304532 46 Andros 1
30453200085 1 304532 46 Andros 1
30453200088 1 304532 46 Andros 1
30453200090 1 304532 46 Andros 1
30453200136 1 304532 46 Andros 1
30453200137 1 304532 46 Andros 1
30453200140 1 304532 46 Andros 1
30453200151 1 304532 46 Andros 1
30453200169 1 304532 46 Andros 1
30453200172 1 304532 46 Andros 1
30453200172 1 304532 46 Andros 1
30453200272 1 304532 46 Andros 1
30453200710 1 304532 46 Andros 1
30453200722 1 304532 46 Andros 1
30453200722 1 304532 46 Andros 1
30453200725 1 304532 46 Andros 1
30453200725 1 304532 46 Andros 1
30453200748 1 304532 46 Andros 1
30453200760 1 304532 46 Andros 1
30453200761 1 304532 46 Andros 1
GPC_S_CD GPC_F_CD GPC_C_CD GPC_B_CD
50000000 NULL NULL NULL
50000000 50190000 50192300 10000197
50000000 NULL NULL NULL
50000000 NULL NULL NULL
50000000 NULL NULL NULL
50000000 50190000 50192300 10000197
50000000 NULL NULL NULL
50000000 NULL NULL NULL
50000000 NULL NULL NULL
50000000 NULL NULL NULL
50000000 NULL NULL NULL
50000000 NULL NULL NULL
50000000 50190000 50192300 10000197
50000000 50190000 50192300 10000197
50000000 NULL NULL NULL
50000000 50190000 50192300 10000197
50000000 50190000 50192300 10000197
50000000 NULL NULL NULL
50000000 NULL NULL NULL
50000000 50190000 50192300 10000197
50000000 50190000 50192300 10000197
50000000 NULL NULL NULL
50000000 NULL NULL NULL
50000000 NULL NULL NULL
50000000 50190000 NULL NULL
50000000 NULL NULL NULL
50000000 NULL NULL NULL
50000000 50190000 NULL NULL
50000000 50190000 NULL NULL
50000000 NULL NULL NULL
GTIN_NM PRODUCT_LINE
NULL NULL
Compote pomme nature Dessert fruitier
confiture fraise Confiture extra
confiture abricot Confiture extra
confiture prune Confiture extra
Compote pomme nature Dessert fruitier
confiture framboise Confiture extra
confiture cerise Confiture allge
confiture fraise Confiture allge
confiture abricot Confiture allge
confiture orange Confiture allge
confiture reine claude Confiture allge
Compote pomme cassis Dessert fruitier
Compote pomme banane Dessert fruitier
Pomme Allge Compotes
Compote pomme nature Dessert fruitier
Compote de pommes nature allge Dessert fruitier
confiture pche Confiture allge
confiture pruneau Confiture extra
Compote pomme pruneau Dessert fruitier
Compote pomme poire Dessert fruitier
compote pomme Compotes
BOCAL. COMPOTE DE POIRES WILLIAMS ANDROS Compotes
Compote pomme pruneaux Dessert fruitier
Compote pomme allge Dessert fruitier
confiture framboise Confiture allge
confiture myrtille Confiture allge
Compote pomme rhubarbe Dessert fruitier
Compote pomme Dessert fruitier
compote pomme compote avec morceaux pot verre Compotes
M_G M_OZ M_ML M_FLOZ M_ABV M_ABW
NULL NULL NULL NULL NULL NULL
100 NULL NULL NULL NULL NULL
1000 NULL NULL NULL NULL NULL
1000 NULL NULL NULL NULL NULL
1000 NULL NULL NULL NULL NULL
100 NULL NULL NULL NULL NULL
1000 NULL NULL NULL NULL NULL
350 NULL NULL NULL NULL NULL
350 NULL NULL NULL NULL NULL
350 NULL NULL NULL NULL NULL
350 NULL NULL NULL NULL NULL
350 NULL NULL NULL NULL NULL
100 NULL NULL NULL NULL NULL
100 NULL NULL NULL NULL NULL
NULL NULL NULL NULL NULL NULL
100 NULL NULL NULL NULL NULL
100 NULL NULL NULL NULL NULL
350 NULL NULL NULL NULL NULL
450 NULL NULL NULL NULL NULL
100 NULL NULL NULL NULL NULL
100 NULL NULL NULL NULL NULL
750 NULL NULL NULL NULL NULL
750 NULL NULL NULL NULL NULL
100 NULL NULL NULL NULL NULL
100 NULL NULL NULL NULL NULL
350 NULL NULL NULL NULL NULL
350 NULL NULL NULL NULL NULL
100 NULL NULL NULL NULL NULL
100 NULL NULL NULL NULL NULL
740 NULL NULL NULL NULL NULL
PKG_UNIT PKG_TYPE_CD REF_CD
1 NULL
4 NULL
1 13
1 13
1 13
8 NULL
1 13
1 13
1 13
1 13
1 13
1 13
4 NULL
4 NULL
1 NULL
4 NULL
4 NULL
1 13
1 13
4 38
4 38
1 13
1 NULL
4 NULL
4 NULL
1 13
1 13
4 38
16 NULL
1 NULL

Potrebbero piacerti anche