sagacity/inc/vendor/godsgood33/php-db/examples/create_table_json.json
Ryan Prather d52454d1bb Updates to 3rd party libraries
Add Dockerfile and specific docker-php.ini
2018-08-28 21:27:13 -04:00

136 lines
2.0 KiB
JSON

{
"tables": [
{
"schema": "db",
"name": "settings",
"primary_key": [
"id"
],
"unique": [
"meta_key"
],
"fields": [
{
"name": "id",
"dataType": "int(11)",
"type": 3,
"length": 11,
"values": [],
"ai": true,
"nn": true,
"default": ""
},
{
"name": "meta_key",
"dataType": "varchar(100)",
"type": 253,
"length": 100,
"values": [],
"ai": false,
"nn": true,
"default": ""
},
{
"name": "meta_value",
"dataType": "mediumtext",
"type": 250,
"length": null,
"values": [],
"ai": false,
"nn": false,
"default": null
}
]
},
{
"schema": "db",
"name": "test",
"primary_key": [
"id",
"fk"
],
"fields": [
{
"name": "id",
"dataType": "int(11)",
"type": 3,
"length": 11,
"values": [],
"ai": true,
"nn": true,
"default": ""
},
{
"name": "fk",
"dataType": "int(11)",
"type": 3,
"length": 11,
"values": [],
"ai": false,
"nn": true,
"default": ""
},
{
"name": "default",
"dataType": "tinyint(1)",
"type": 1,
"length": 1,
"values": [],
"ai": false,
"nn": false,
"default": "0"
},
{
"name": "enum",
"dataType": "enum",
"type": 247,
"length": null,
"values": [
"1",
"2"
],
"ai": false,
"nn": false,
"default": "1"
}
],
"constraints": [
{
"id": "con_1",
"local": "fk",
"schema": "db",
"table": "test",
"field": "id",
"update": null,
"delete": null
}
],
"index": [
{
"id": "default_idx",
"type": "index",
"ref": "default"
}
]
},
{
"schema": "db",
"name": "test2",
"primary_key": [
"id"
],
"fields": [
{
"name": "id",
"dataType": "int(11)",
"type": 3,
"length": 11,
"values": [],
"ai": true,
"nn": true,
"default": ""
}
]
}
]
}