Columns
| Column | Type | Size | Nulls | Auto | Default | Children | Parents | Comments | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| cell_id | serial | 10 | √ | nextval('batteries_cell_id_seq'::regclass) |
|
|
Unique identifier for the cell instance. Auto-incremented upon insertion. |
||||||||||
| cell_type_id | int4 | 10 | null |
|
|
Refers to the make of the cell defined in cells_meta table. |
|||||||||||
| batch_number | text | 2147483647 | √ | null |
|
|
Batch number of the cells from manufacturer. |
||||||||||
| label | text | 2147483647 | √ | null |
|
|
The label written on the cell for internal use. |
||||||||||
| date_received | date | 13 | √ | null |
|
|
Date the cell was received by the lab. |
||||||||||
| comments | text | 2147483647 | √ | null |
|
|
Any comments about the cell. |
||||||||||
| date_manufactured | date | 13 | √ | null |
|
|
Date the cell was created by the manufacturer. |
||||||||||
| manufacturer_sn | text | 2147483647 | √ | null |
|
|
Manufacturer’s serial number of the cell printed on the cell. |
||||||||||
| dimensions | jsonb | 2147483647 | √ | null |
|
|
Dimensions of the cell instance. For pouch cells, H x W x L in mm. For cyclindrical cells, r x H in mm. For example, ‘{“x_mm”:54.25, “y_mm”:106.96, “z_mm”:3.19}’ for a pouch cell and ‘{“x_mm”:54.25, “y_mm”:106.96, “z_mm”:3.19}’ for a cyclindrical cell. |
||||||||||
| weight_g | float4 | 8,8 | √ | null |
|
|
Weight in grams. |
||||||||||
| first_received_at_voltage_mv | float4 | 8,8 | √ | null |
|
|
Voltage of the cell prior to testing. |
Indexes
| Constraint Name | Type | Sort | Column(s) |
|---|---|---|---|
| cell_id | Primary key | Asc | cell_id |
| batterytype_label_id | Must be unique | Asc/Asc | cell_type_id + label |



