| Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments | ||
|---|---|---|---|---|---|---|---|---|---|---|
| ID | int4 | 10 | √ | null |
|
|
Coupon ID |
|||
| ownergroup | int4 | 10 | √ | null |
|
|
Owner group ID ( |
|||
| creator | int4 | 10 | √ | null |
|
|
Creator user ID (defaults to authenticated user on creation) |
|||
| creationdate | int8 | 19 | date_part('epoch'::text, now()) |
|
|
Creation date and time as a Unix time stamp (defaults to current date and time on creation) |
||||
| lastmodified | int8 | 19 | date_part('epoch'::text, now()) |
|
|
Last modification date and time as a Unix time stamp (auto-reset on modification) |
||||
| activity | int2 | 5 | 0 |
|
|
Activity ( |
||||
| name | text | 2147483647 | null |
|
|
Name |
||||
| type | int2 | 5 | 0 |
|
|
Coupon type ( |
||||
| code |
text | 2147483647 | ''::text |
|
|
Promotion code (only for PROMOTION) |
||||
| value | float8 | 17,17 | 0 |
|
|
Default value |
||||
| taxrate | float8 | 17,17 | √ | null |
|
|
Tax rate in percent |
|||
| datefrom | int8 | 19 | √ | null |
|
|
Start date and time as a Unix time stamp; must be less than or equal to |
|||
| dateto | int8 | 19 | √ | null |
|
|
End date and time as a Unix time stamp; must be greater than or equal to |
|||
| description | text | 2147483647 | ''::text |
|
|
Detailed general description |
Showing 1 to 14 of 14 entries
Table contained 0 rows
| Constraint Name | Type | Sort | Column(s) |
|---|---|---|---|
| pk_coupons | Primary key | Asc | ID |
| i_coupons_noowner | Performance | Asc | ownergroup |
| i_coupons_owner | Performance | Asc | ownergroup |
| s_coupons | Performance | Asc/Asc | name + code |
| u_coupons_code | Must be unique | Asc | code |
Showing 1 to 5 of 5 entries

