Updates
This commit is contained in:
parent
656eb27b8c
commit
7c04884a00
97
dist/package-shared/data/dataTypes.json
vendored
Normal file
97
dist/package-shared/data/dataTypes.json
vendored
Normal file
@ -0,0 +1,97 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
"title": "VARCHAR",
|
||||||
|
"name": "VARCHAR",
|
||||||
|
"value": "0-255",
|
||||||
|
"argument": true,
|
||||||
|
"description": "Varchar is simply letters and numbers within the range 0 - 255",
|
||||||
|
"maxValue": 255
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "TINYINT",
|
||||||
|
"name": "TINYINT",
|
||||||
|
"value": "0-100",
|
||||||
|
"description": "TINYINT means Integers: 0 to 100",
|
||||||
|
"maxValue": 127
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "SMALLINT",
|
||||||
|
"name": "SMALLINT",
|
||||||
|
"value": "0-255",
|
||||||
|
"description": "SMALLINT means Integers: 0 to 240933",
|
||||||
|
"maxValue": 32767
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "MEDIUMINT",
|
||||||
|
"name": "MEDIUMINT",
|
||||||
|
"value": "0-255",
|
||||||
|
"description": "MEDIUMINT means Integers: 0 to 1245568545560",
|
||||||
|
"maxValue": 8388607
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "INT",
|
||||||
|
"name": "INT",
|
||||||
|
"value": "0-255",
|
||||||
|
"description": "INT means Integers: 0 to 12560",
|
||||||
|
"maxValue": 2147483647
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "BIGINT",
|
||||||
|
"name": "BIGINT",
|
||||||
|
"value": "0-255",
|
||||||
|
"description": "BIGINT means Integers: 0 to 1245569056767568545560",
|
||||||
|
"maxValue": 2e63
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "TINYTEXT",
|
||||||
|
"name": "TINYTEXT",
|
||||||
|
"value": "0-255",
|
||||||
|
"description": "Text with 255 max characters",
|
||||||
|
"maxValue": 127
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "TEXT",
|
||||||
|
"name": "TEXT",
|
||||||
|
"value": "0-100",
|
||||||
|
"description": "MEDIUMTEXT is just text with max length 16,777,215"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "MEDIUMTEXT",
|
||||||
|
"name": "MEDIUMTEXT",
|
||||||
|
"value": "0-255",
|
||||||
|
"description": "MEDIUMTEXT is just text with max length 16,777,215"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "LONGTEXT",
|
||||||
|
"name": "LONGTEXT",
|
||||||
|
"value": "0-255",
|
||||||
|
"description": "LONGTEXT is just text with max length 4,294,967,295"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "DECIMAL",
|
||||||
|
"name": "DECIMAL",
|
||||||
|
"description": "Numbers with decimals",
|
||||||
|
"integer": "1-100",
|
||||||
|
"decimals": "1-4"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "FLOAT",
|
||||||
|
"name": "FLOAT",
|
||||||
|
"description": "Numbers with decimals",
|
||||||
|
"integer": "1-100",
|
||||||
|
"decimals": "1-4"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "DOUBLE",
|
||||||
|
"name": "DOUBLE",
|
||||||
|
"description": "Numbers with decimals",
|
||||||
|
"integer": "1-100",
|
||||||
|
"decimals": "1-4"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"title": "UUID",
|
||||||
|
"name": "UUID",
|
||||||
|
"valueLiteral": "UUID()",
|
||||||
|
"description": "A Unique ID"
|
||||||
|
}
|
||||||
|
]
|
45
dist/package-shared/data/defaultFields.json
vendored
Normal file
45
dist/package-shared/data/defaultFields.json
vendored
Normal file
@ -0,0 +1,45 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
"fieldName": "id",
|
||||||
|
"dataType": "BIGINT",
|
||||||
|
"notNullValue": true,
|
||||||
|
"primaryKey": true,
|
||||||
|
"autoIncrement": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"fieldName": "uuid",
|
||||||
|
"dataType": "UUID",
|
||||||
|
"defaultValueLiteral": "UUID()"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"fieldName": "date_created",
|
||||||
|
"dataType": "VARCHAR(250)",
|
||||||
|
"nullValue": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"fieldName": "date_created_code",
|
||||||
|
"dataType": "BIGINT",
|
||||||
|
"nullValue": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"fieldName": "date_created_timestamp",
|
||||||
|
"dataType": "TIMESTAMP",
|
||||||
|
"defaultValueLiteral": "CURRENT_TIMESTAMP"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"fieldName": "date_updated",
|
||||||
|
"dataType": "VARCHAR(250)",
|
||||||
|
"nullValue": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"fieldName": "date_updated_code",
|
||||||
|
"dataType": "BIGINT",
|
||||||
|
"nullValue": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"fieldName": "date_updated_timestamp",
|
||||||
|
"dataType": "TIMESTAMP",
|
||||||
|
"defaultValueLiteral": "CURRENT_TIMESTAMP",
|
||||||
|
"onUpdateLiteral": "CURRENT_TIMESTAMP"
|
||||||
|
}
|
||||||
|
]
|
22
dist/package-shared/data/possibleFields.json
vendored
Normal file
22
dist/package-shared/data/possibleFields.json
vendored
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
{
|
||||||
|
"fieldName": "string",
|
||||||
|
"dataType": "BIGINT",
|
||||||
|
"nullValue": true,
|
||||||
|
"primaryKey": true,
|
||||||
|
"autoIncrement": true,
|
||||||
|
"defaultValue": "CURRENT_TIMESTAMP",
|
||||||
|
"defaultValueLiteral": "CURRENT_TIMESTAMP",
|
||||||
|
"notNullValue": true,
|
||||||
|
"foreignKey": {
|
||||||
|
"foreignKeyName": "Name",
|
||||||
|
"destinationTableName": "Table Name",
|
||||||
|
"destinationTableColumnName": "Column Name",
|
||||||
|
"cascadeDelete": true,
|
||||||
|
"cascadeUpdate": true
|
||||||
|
},
|
||||||
|
"onUpdate": "CURRENT_TIMESTAMP",
|
||||||
|
"onUpdateLiteral": "CURRENT_TIMESTAMP",
|
||||||
|
"onDelete": "CURRENT_TIMESTAMP",
|
||||||
|
"onDeleteLiteral": "CURRENT_TIMESTAMP",
|
||||||
|
"encrypted": false
|
||||||
|
}
|
97
dist/package-shared/data/presets/users.json
vendored
Normal file
97
dist/package-shared/data/presets/users.json
vendored
Normal file
@ -0,0 +1,97 @@
|
|||||||
|
{
|
||||||
|
"tableName": "users",
|
||||||
|
"tableFullName": "Users",
|
||||||
|
"fields": [
|
||||||
|
{
|
||||||
|
"fieldName": "first_name",
|
||||||
|
"dataType": "VARCHAR(100)",
|
||||||
|
"notNullValue": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"fieldName": "last_name",
|
||||||
|
"dataType": "VARCHAR(100)",
|
||||||
|
"notNullValue": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"fieldName": "email",
|
||||||
|
"dataType": "VARCHAR(200)",
|
||||||
|
"notNullValue": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"fieldName": "phone",
|
||||||
|
"dataType": "VARCHAR(50)"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"fieldName": "user_type",
|
||||||
|
"dataType": "VARCHAR(20)",
|
||||||
|
"defaultValue": "default"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"fieldName": "username",
|
||||||
|
"dataType": "VARCHAR(100)",
|
||||||
|
"nullValue": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"fieldName": "password",
|
||||||
|
"dataType": "TEXT"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"fieldName": "image",
|
||||||
|
"dataType": "VARCHAR(250)"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"fieldName": "image_thumbnail",
|
||||||
|
"dataType": "VARCHAR(250)"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"fieldName": "address",
|
||||||
|
"dataType": "VARCHAR(255)"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"fieldName": "city",
|
||||||
|
"dataType": "VARCHAR(50)"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"fieldName": "state",
|
||||||
|
"dataType": "VARCHAR(50)"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"fieldName": "country",
|
||||||
|
"dataType": "VARCHAR(50)"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"fieldName": "zip_code",
|
||||||
|
"dataType": "VARCHAR(50)"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"fieldName": "social_login",
|
||||||
|
"dataType": "TINYINT",
|
||||||
|
"defaultValue": "0"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"fieldName": "social_platform",
|
||||||
|
"dataType": "VARCHAR(50)",
|
||||||
|
"nullValue": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"fieldName": "social_id",
|
||||||
|
"dataType": "VARCHAR(250)",
|
||||||
|
"nullValue": true
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"fieldName": "more_user_data",
|
||||||
|
"dataType": "BIGINT",
|
||||||
|
"defaultValue": "0"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"fieldName": "verification_status",
|
||||||
|
"dataType": "TINYINT",
|
||||||
|
"defaultValue": "0"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"fieldName": "temp_login_code",
|
||||||
|
"dataType": "VARCHAR(50)",
|
||||||
|
"nullValue": true
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@moduletrace/datasquirel",
|
"name": "@moduletrace/datasquirel",
|
||||||
"version": "4.3.7",
|
"version": "4.3.8",
|
||||||
"description": "Cloud-based SQL data management tool",
|
"description": "Cloud-based SQL data management tool",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"bin": {
|
"bin": {
|
||||||
|
@ -8,6 +8,7 @@ fi
|
|||||||
|
|
||||||
rm -rf dist
|
rm -rf dist
|
||||||
tsc
|
tsc
|
||||||
|
cp -r package-shared/data dist/package-shared/
|
||||||
git add .
|
git add .
|
||||||
git commit -m "$msg"
|
git commit -m "$msg"
|
||||||
git push
|
git push
|
||||||
|
Loading…
Reference in New Issue
Block a user