go/sqlgen/test-files/TestParse/003.json

62 lines
1.2 KiB
JSON
Raw Normal View History

2024-11-11 05:36:55 +00:00
{
"Tables": [
{
"Name": "users",
"Type": "User",
"NoDelete": true,
"Columns": [
{
"Name": "UserID",
"Type": "string",
"SqlName": "user_id",
"PK": true
},
{
"Name": "Email",
"Type": "string",
"SqlName": "email",
"NoUpdate": true
},
{
"Name": "Name",
"Type": "string",
"SqlName": "name",
"NoInsert": true
},
{
"Name": "Admin",
"Type": "bool",
"SqlName": "admin",
"NoInsert": true,
"NoUpdate": true
}
]
},
{
"Name": "users_view",
"Type": "UserView",
"NoInsert": true,
"NoUpdate": true,
"NoDelete": true,
"Columns": [
{
"Name": "UserID",
"Type": "string",
"SqlName": "user_id",
"PK": true
},
{
"Name": "Email",
"Type": "string",
"SqlName": "email"
},
{
"Name": "Name",
"Type": "string",
"SqlName": "name"
}
]
}
]
}