1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80
|
# serializer version: 1
# name: test_basic
'''
<document source="<src>/index.rst">
<definition_list classes="simple sqla">
<definition_list_item>
<term>
module1.TestUser
(
<emphasis>
dbusers
)
<definition>
<paragraph>
A
<literal>
user
.
<rubric>
Columns:
<table align="left" classes="colwidths-auto">
<tgroup cols="3">
<colspec>
<colspec>
<colspec>
<tbody>
<row>
<entry>
<paragraph>
<emphasis>
pk*
<entry>
<paragraph>
INTEGER
<entry>
<paragraph>
<row>
<entry>
<paragraph>
first_name
<entry>
<paragraph>
VARCHAR?
<entry>
<paragraph>
The name of the user.
<row>
<entry>
<paragraph>
last_name
<entry>
<paragraph>
VARCHAR(255)?
<entry>
<paragraph>
The surname of the user.
<row>
<entry>
<paragraph>
dob
<entry>
<paragraph>
DATE
<entry>
<paragraph>
The date of birth.
<rubric>
Constraints:
<bullet_list>
<list_item>
<paragraph>
CHECK (length(trim('first_name')) > 0)
<list_item>
<paragraph>
PRIMARY KEY (pk)
<list_item>
<paragraph>
UNIQUE (first_name, last_name)
'''
# ---
|