coupons


Columns

Column Type Size Nulls Auto Default Children Parents Comments
ID serial 10 nextval('"coupons_ID_seq"'::regclass)
couponcodes.coupon FK_couponcodes_coupon C
ownergroup int4 10 null
groups.ID FK_coupons_ownergroup C

The owner group (if owneruser and ownergroup are NULL, the element is public)

creator int4 10 null
users.ID FK_coupons_creator N

The object creator

creationdate int8 19 (date_part('epoch'::text, now()))::bigint

Last modification date/time (Unix timestamp in seconds)

lastmodified int8 19 (date_part('epoch'::text, now()))::bigint

Last modification date/time (Unix timestamp in seconds)

activity int2 5 0

0: Active, 1: Deactivated

name text 2147483647 null
type int2 5 0
code text 2147483647 null
value float8 17,17 0
taxrate float8 17,17 null
datefrom int8 19 null

Unix timestamp in seconds

dateto int8 19 null

Unix timestamp in seconds

description text 2147483647 ''::text

The general description field

Table contained 0 rows

Indexes

Constraint Name Type Sort Column(s)
PK_coupons_ID Primary key Asc ID
UNQ_coupons_code Must be unique Asc code

Relationships