We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c72d79e + eee98e3 commit d6e0618Copy full SHA for d6e0618
docs/src/piccolo/schema/defining.rst
@@ -23,6 +23,23 @@ For a full list of columns, see :ref:`ColumnTypes`.
23
24
-------------------------------------------------------------------------------
25
26
+Default columns
27
+---------------
28
+
29
+id
30
+~~
31
32
+Each table is automatically given a ``PrimaryKey`` column called ``id``, which
33
+is an auto incrementing integer.
34
35
+It is used to uniquely identify a row, and is referenced by ``ForeignKey``
36
+columns on other tables.
37
38
+If you specify your own ``id`` column, you may get unexpected behaviour, so
39
+it's not recommended at the moment.
40
41
+-------------------------------------------------------------------------------
42
43
Tablename
44
---------
45
0 commit comments