Welcome, guest! Login / Register - Why register?
Psst.. new poll here.
Psst.. new forums here.
Microsoft is blocking us again (TY IP Reputation!) so just use oauth login instead. :)

Paste

Pasted as SQL by thy ( 14 years ago )
create table banner (
    id integer,
    place_id integer, -- баннерное место из ab.ab_place
    type smallint, -- тип контента: 1 - image, 2 - flash, 3 - tgb и тд
    url text, -- ссылка для перехода по клику
    country integer, -- страна
    resort integer, -- курорт
    allocation integer, -- отель
    alloccat integer, -- звездность
    op integer, -- оператор
    station integer, -- станция метро
    food integer, -- питание
    smart_adv boolean, -- умная реклама
    targeting boolean, -- гео-таргетинг
    rotation boolean -- ротация
);

create table banner_info (
    id integer,
    banner_id integer, -- id баннера
    type smallint, -- тип параметра: html-содержимое, текст баннера, ширина-высота и тд
    value text -- значение параметра
);

create table placement (
    id integer,
    banner_id integer, -- баннер и banner
    crm_id integer, -- CRM id клиента
    resource_id integer, -- ресурс клиента
    date_from date, -- дата с
    date_to date, -- дата по
    country integer, -- страна
    resort integer, -- курорт
    allocation integer, -- отель
    alloccat integer, -- звезлность
    op integer, -- оператор
    station integer, -- станция метро
    food integer, -- питание
    smart_adv boolean, -- умная реклама
    targeting boolean, -- гео-таргетинг
    rotation boolean, -- ротация
    rotarion_type smallint, -- тип ротации, % показов или количество мест
    rotation_value integer -- показатель ротации
);

create table placement_targeting (
    id integer,
    placement_id integer, -- id размещения
    geo_type character varying (255), -- тип таргетинга: country/city
    geo_id integer, -- id из словаря стран/городов
    all_fdistrict boolean DEFAULT false, -- все ли регионы
    all_district boolean DEFAULT false, -- все ли округа
    all_city boolean DEFAULT false, -- все ли города
    all_subway boolean DEFAULT false, -- все ли станции метро
);

 

Revise this Paste

Children: 56868
Your Name: Code Language: