Schema

1 min. read

A Schema in Databases, is like a blueprint, it defines how the data is organized and also handles the validation.

Constraint

Constraints are the specifications of the schema, which specifies the name of the column, the data type and if it’s required or not.

Special Constraints:
Primary Key (PK)
Each row as a PK
Must be unique

References