Você está na página 1de 7

Brands : This is the master table for brands.

Every brand that is


present will be seen in this table.

Sr. no.ColumnDescription1IDPrimary key which is autoincriment2DESCRIPTIONName of brand e.g(Nokia,Splash etc)3IMAGE_IDNot used4STATUSNot used 5ACTIVEAlways set as 1,default value is 06IS_DELETEDTo soft delete brand set 1 else 07CREATED_ONDate when brand is added in the table8CREATED_BYNot used9MODIFIED_ONDate when brand is modified10MODIFIED_BYNot used11BRAND_CATEGORY_IDNot used12DETAIL_DESCRIPTIONComplete description about the brand13IMAGE_URLPath where image is stored for the brand14BRAND_TYPE0 : Retail 1 : Hospitality

COUNTRY_BRANDS : This table is used to map country with brands. Which brands are in which country is mentioned in this table. Every brand for a country will have separate entry in this table.

Sr noColumnDescription1IDPrimary key which is autoincriment2BRAND_IDForeign key from brands table3COUNTRY_IDForeign key from country table4BRAND_ORDERThis is the id for total brands in the country. If there are 16 brands for a given country then for one more entry this value will be 17 5STATUSNot used6ACTIVEAlways set as 1,default value is 07IS_DELETEDTo soft delete brand set 1 else 08CREATED_ONDate when brand is added in the table9CREATED_BYNot used10MODIFIED_ONDate when brand is modified11MODIFIED_BYNot used12BRAND_IMAGE_URLPath where image is stored for the brand13SALE_POINTSThis will be provided by client,indicates points earned when sale is on14NON_SALE_POINTSThis will be provided by client,indicates points earned when there are no sales15REFERENCE_POINTSCurrency for the country (see details below)Values for REFERENCE_POINTS for country are given as

follows :

COUNTRY_IDCOUNTRYREFERENCE_POINTS1UAE10 AED 2Bahrain10 BDH3Saudi Arabia10 SAR 4Qatar10 QAR5Jordan10 JOD6Kuwait10 KWD7Oman10 OMR

BRAND_PRODUCT_CATEGORIES : Need to enter into this table just to check which PRODUCT_CATEGORIES this brand belongs e.g.
electronics,footwear etc.1 Entry per brand.

Sr noCOLUMNDESCRIPTION1IDPrimary key which is autoincriment2BRAND_IDForeign key from brands table3PRODUCT_CATEGORY_IDForeign key from PRODUCT_CATEGORIES table4STATUSNot used5ACTIVEAlways set as 1,default value is 06IS_DELETEDTo soft delete brand set 1 else 07CREATED_ONDate when brand is added in the table8CREATED_BYNot used9MODIFIED_ONDate when brand is modified10MODIFIED_BYNot used

PRODUCT_CATEGORIES : This is the master table hence entry may not change. The is used as foreign key in BRAND_PRODUCT_CATEGORIES
table. Currently there are 12 categories in the table.

Sr noCOLUMNDESCRIPTION1IDPrimary key which is autoincriment2DESCRIPTIONName of the category (Hotels,Electronics etc)3PRODUCT_CATEGORY_IDForeign key from PRODUCT_CATEGORIES table4STATUSNot used5ACTIVEAlways set as 1,default value is 06IS_DELETEDTo soft delete brand set 1 else 07CREATED_ONDate when brand is added in the table8CREATED_BYNot used9MODIFIED_ONDate when brand is modified10MODIFIED_BYNot used

STORES : This is the stores table which has details of all the
stores. The primary key of this table is used as foreign key in many other tables. Behaves as master table.

Sr noCOLUMNDESCRIPTION1IDPrimary key which is autoincriment2NAMEName of the store3CITY_IDForeign key from cities table4COUNTRY_IDForeign key from countries table 5ACTIVEAlways set as 1,default value is 06IS_DELETEDTo soft delete brand set 1 else 07STATUSNot Used8CREATED_ONDate when brand is added in the table9CREATED_BYNot used10MODIFIED_ONDate when brand is modified11MODIFIED_BYNot used12SEIBEL_STORE_IDNot used

CITY_STORES : This is the most important table where brands are


visible. You need to mention city_id,country_id,brand_id and store_id from the master tables. This table indicates brands are visible are in which countries which table.

Sr noCOLUMNDESCRIPTION1idPrimary key which is autoincriment2CITY_NAMEName of city from cities table3CITY_IDForeign key from city table 4STORE_NAMEName from stores table5STORE_IDStore id from stores table6STORE_PHONEPhone number of the store7STORE_FAXFax no. of the store8STORE_EMAILEmailid of the store if any9COUNTRYName of country from countries table 10ADDRESS1Address line 1 for the store11ADDRESS2Address line 2 for the store12ADDRESS3Address line 3 for the store13ADDRESS4Address line 4 for the store14ADDRESS5Address line 5 for the store15IS_DELETEDTo soft delete brand set 1 else 016STATUSNot Used17CREATED_ONDate when new entry is added in the table18CREATED_BYNot used19MODIFIED_ONDate when fields is modified20MODIFIED_BYNot used21COUNTRY_IDForeign key from countries table 22BRAND_IDForeign key from 23ACTIVEAlways set as 1,default value is 0

Você também pode gostar