fix: Correct the AUTOINCREMENT statement and PRIMARY KEY place in declaration
This commit is contained in:
29
example.json
29
example.json
@@ -6,7 +6,34 @@
|
||||
{
|
||||
"name": "id",
|
||||
"datatype": "Integer",
|
||||
"primary_key": true
|
||||
"primary_key": true,
|
||||
"auto_increment": true
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "users",
|
||||
"strict": true,
|
||||
"columns": [
|
||||
{
|
||||
"name": "id",
|
||||
"datatype": "Integer",
|
||||
"primary_key": true,
|
||||
"auto_increment": true
|
||||
},
|
||||
{
|
||||
"name": "name",
|
||||
"datatype": "Text",
|
||||
"unique": true
|
||||
},
|
||||
{
|
||||
"name": "password",
|
||||
"datatype": "Text"
|
||||
},
|
||||
{
|
||||
"name": "email",
|
||||
"datatype": "Text",
|
||||
"unique": true
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user