Merge branch 'b-3.6.1' of ../kivitendo-erp_20220811
[kivitendo-erp.git] / sql / Pg-upgrade2 / shops.sql
1 -- @tag: shops
2 -- @description: Tabelle für Shops
3 -- @depends: release_3_5_0 customer_klass_rename_to_pricegroup_id_and_foreign_key
4 -- @ignore: 0
5
6 CREATE TABLE shops (
7   id SERIAL PRIMARY KEY,
8   description text,
9   obsolete BOOLEAN NOT NULL DEFAULT false,
10   sortkey INTEGER,
11   connector text,     -- hardcoded options, e.g. xtcommerce, shopware
12   pricetype text,     -- netto/brutto
13   price_source text,  -- sellprice/listprice/lastcost or pricegroup id
14   taxzone_id INTEGER,
15   last_order_number INTEGER,
16   orders_to_fetch INTEGER,
17   url text,
18   port INTEGER,
19   login text,  -- "user" is reserved
20   password text
21 );