public.category
Documentation | Pagila |
Schema | public |
Name | category |
Module | Inventory |
Stores film’s categories data
Columns
Key | Name | Data type | Null | Attributes | References | Description | ||
---|---|---|---|---|---|---|---|---|
1 | category_id | integer | Default: nextval('category_category_id_seq'::regclass) | A surrogate primary key used to uniquely identify each category in the table. | ||||
A surrogate primary key used to uniquely identify each category in the table. Default: nextval('category_category_id_seq'::regclass) |
||||||||
2 | name | character varying(25) | The name of the category. | |||||
The name of the category. |
||||||||
3 | last_update | timestamp without time zone(6) | Default: now() | The time that the row was created or most recently updated. | ||||
The time that the row was created or most recently updated. Default: now() |
Relations
Foreign table | Primary table | Join | Title / Name / Description | |
---|---|---|---|---|
public.film_category | public.category | public.film_category.category_id = public.category.category_id | film_category_category_id_fkey Foreign key constraint referencing category.category_id |
|
public.film_category.category_id = public.category.category_id Name: film_category_category_id_fkeyForeign key constraint referencing category.category_id |
Unique keys
Key name | Columns | Description | |
---|---|---|---|
category_pkey | category_id | Primary key. | |
Primary key. |
Triggers
Key name | When | Description | |
---|---|---|---|
last_updated | Before Update | The last_updated trigger sets last_update column of table to the current timestamp. | |
The last_updated trigger sets last_update column of table to the current timestamp. |
Used by
Exported: 2018-10-12 17:07, Last imported: 2018-08-06 09:25