arivera12 / OneLine

OneLine is a multiplatform, standardized, redefined framework.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Tool] New Engine Main Structure Idea

arivera12 opened this issue · comments

Main Structure Idea

{
    "ApplicationName": "Relax",
    "DataBases": [{
        "DataBaseName": "Relax_Dev",
        "ConnectionString": "mycon",
        "Tables": [{
            "TableName": "Categories",
            "TableColumns": [{
                    "ColumName": "CategoryId",
                    "DataType": "string",
                    "MaxLength": 64,
                    "MinLength": 10,
                    "Required": true,
                    "IsPrimaryKey": true
                },
                {
                    "ColumName": "CategoryName",
                    "DataType": "string",
                    "MaxLength": 64,
                    "MinLength": 1,
                    "Required": true,
                    "AllowNull": false
                }
            ]
        }],
        "Controllers": [{
            "ControllerName": "Categories",
            "AllowedRoles": ["Admin", "employee"],
            "ControllersMethods": [{
                "MethodName": "Add",
                "Parameters": [{
                    "ParameterName": "categories",
                    "ParameterDataType": "Categories"
                }],
                "RepositoryTransaction": {
                    "TransactionType": "Insert",
                    "Audited": true
                }
            }]
        }],
        "Menus": [{
            "MenuName": "newsfeed",
            "AllowedRoles": ["Admin", "employee"],
            "DisplayIn": ["TopBar", "SideBar"],
            "OrderNumber": 1
        }],
        "Pages": [{}],
        "Plugins": [{
            "UserAccounts": {},
            "Notifications": {}
        }]
    }]
}