Columns
Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments | ||
---|---|---|---|---|---|---|---|---|---|---|
id | bigserial | 19 | √ | nextval('user_badge_id_seq'::regclass) |
|
|
||||
user_id | int8 | 19 | null |
|
|
|||||
type | text | 2147483647 | null |
|
|
|||||
created_at | timestamptz | 35,6 | √ | CURRENT_TIMESTAMP |
|
|
Indexes
Constraint Name | Type | Sort | Column(s) |
---|---|---|---|
user_badge_pkey | Primary key | Asc | id |
user_badge_user_id_type_unique | Must be unique | Asc/Asc | user_id + type |
Check Constraints
Constraint Name | Constraint |
---|---|
user_badge_type_check | ((type = 'seed'::text)) |