1 line
20 KiB
JavaScript
1 line
20 KiB
JavaScript
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9967],{99967:function(e,t,l){l.d(t,{Z:function(){return m}});var a=l(47568),n=l(828),i=l(97582),s=l(85893),r=l(67294),d=l(24209),o=l(64838),u=l(96486),c=l.n(u);function m(e){var t,u,m,f=e.targetField,v=e.fieldIndex,x=e.tableFields,h=e.setTableFields,p=e.refreshFieldsListRef,g=e.setActiveEdit,N=e.database,j=e.currentTable,y=e.user,b=(null===f||void 0===f?void 0:f.dataType)?f.dataType.replace(/\d|\(|\)/g,""):null,T=(null===f||void 0===f?void 0:f.dataType)?f.dataType.replace(/[^\d]/g,""):"200",w=l(89594),_=r.useRef(c().cloneDeep(f)),F=r.useRef(),C=(0,n.Z)(r.useState(f),2),I=C[0],V=C[1],E=(0,n.Z)(r.useState(null===f||void 0===f?void 0:f.fieldName),2),S=E[0],D=(E[1],(0,n.Z)(r.useState(b),2)),k=D[0],Z=D[1],K=(0,n.Z)(r.useState(T),2),R=K[0],A=K[1],L=(0,n.Z)(r.useState("Varchar is simply letters and numbers within the range 0 - 255"),2),U=L[0],M=L[1],Y=(0,n.Z)(r.useState((null===f||void 0===f?void 0:f.richText)&&!(null===f||void 0===f?void 0:f.encrypted)?"Yes":"No"),2),q=(Y[0],Y[1],Boolean(null===k||void 0===k?void 0:k.match(/uuid/i)));return(0,s.jsx)("div",{className:"w-full -mt-3 bg-white dark:bg-slate-800 flex-wrap",ref:F,children:(0,s.jsxs)("form",{className:"flex flex-col xl:flex-row items-start gap-4 w-full justify-between border border-solid p-4 border-slate-200 dark:border-slate-600 rounded rounded-t-none focus:shadow-lg shadow-slate-700 dark:shadow-black relative flex-wrap",onSubmit:function(e){var t,l;e.preventDefault(),h((function(e){var t=e;return t[v]=I,t})),p.current((function(e){return e+1})),null===(l=null===(t=e.target.closest(".table-field-wrapper"))||void 0===t?void 0:t.querySelector(".edit-table-field-section"))||void 0===l||l.classList.toggle("hidden")},children:[(0,s.jsxs)("div",{className:"gap-4 flex-wrap w-full md:w-auto flex-col xl:flex-row items-stretch",children:[(0,s.jsxs)("div",{className:"flex flex-col items-start gap-0.5",children:[(0,s.jsx)("label",{htmlFor:"new_field_name",children:"Field Name"}),(0,s.jsx)("input",{type:"text",name:"new_field_name",id:"new_field_name",placeholder:"Eg. post_title",onInput:function(){var e=(0,a.Z)((function(e){var t;return(0,i.__generator)(this,(function(l){return(t=e.target).value=t.value.toLowerCase().replace(/ /g,"_"),V((function(e){var l=e;return l.fieldName=t.value,l.updatedField=!0,l.originName||(l.originName=S),l})),[2]}))}));return function(t){return e.apply(this,arguments)}}(),required:!0,defaultValue:S})]}),(0,s.jsxs)("div",{className:"flex flex-col items-start gap-4 xl:gap-0.5",children:[(0,s.jsxs)("div",{className:"flex-wrap xl:flex-nowrap w-full md:w-auto",children:[(0,s.jsx)("label",{htmlFor:"new_field_data_type",children:"Data Type"}),(0,s.jsxs)("div",{className:"dropdown-wrapper reversed text-sm items-start",children:[(0,s.jsx)("span",{className:"px-2 bg-slate-200 dark:bg-slate-700 rounded-full hover:bg-slate-100 dark:hover:bg-slate-600 hidden xl:flex",children:"Info"}),(0,s.jsx)("div",{className:"dropdown mt-0 xl:-mt-2",children:(0,s.jsx)("span",{children:U})})]})]}),(0,s.jsxs)("div",{className:"w-auto",children:[(0,s.jsx)("select",{name:"new_field_data_type",id:"new_field_data_type",className:"w-full xl-w-auto",onChange:function(e){var t=e.target;Z(t.value),t.childNodes.forEach((function(e){e.value===t.value&&e.dataset.desc&&M(e.dataset.desc),e.value===t.value&&e.dataset.literal?(I.defaultValueLiteral=e.dataset.literal,I.nullValue=!1):delete I.defaultValueLiteral})),f.dataType=t.value+(t.value.match(/VARCHAR/)?"(".concat(R||200,")"):"")},defaultValue:k||void 0,children:w.map((function(e,t){return e.name.match(/VARCHAR/)?(0,s.jsx)("option",{value:e.name,"data-desc":e.description,children:e.title+"("+(R||200)+")"},t+1):(0,s.jsx)("option",{value:e.name,"data-desc":e.description,"data-literal":e.valueLiteral||void 0,children:e.title},t+1)}))}),(null===k||void 0===k?void 0:k.match(/VARCHAR/))&&(0,s.jsx)("input",{type:"number",defaultValue:R||200,className:"px-2",style:{maxWidth:"60px"},max:255,min:5,onChange:function(e){A(e.target.value),f.dataType=k+"(".concat(e.target.value,")")}})]})]}),(null===k||void 0===k?void 0:k.match(/text/i))&&(0,s.jsx)(r.Fragment,{children:(0,s.jsx)(o.Z,{targetField:f})}),!(null===(t=f.dataType)||void 0===t?void 0:t.match(/text/i))&&!q&&(0,s.jsxs)("div",{className:"flex flex-col items-start gap-0.5",style:{minWidth:"70px"},children:[(0,s.jsx)("label",{htmlFor:"new_field_required",children:"Required?"}),(0,s.jsxs)("select",{name:"new_field_required",id:"new_field_required",className:"px-2",defaultValue:(null===f||void 0===f?void 0:f.notNullValue)?"Yes":"No",onChange:function(e){console.log(f),"Yes"===e.target.value?f.notNullValue=!0:(f.notNullValue=!1,delete f.notNullValue)},children:[(0,s.jsx)("option",{value:"No",children:"No"}),(0,s.jsx)("option",{value:"Yes",children:"Yes"})]})]}),!q&&(0,s.jsxs)("div",{className:"flex flex-col items-start gap-0.5",children:[(0,s.jsx)("label",{htmlFor:"new_field_default_value",children:(null===I||void 0===I||null===(u=I.dataType)||void 0===u?void 0:u.match(/text$/i))?"Can't Set Default for text values":"Default Value (optional)"}),(0,s.jsx)("input",{type:"text",name:"new_field_default_value",id:"new_field_default_value",className:(null===I||void 0===I||null===(m=I.dataType)||void 0===m?void 0:m.match(/text$/i))?"pointer-events-none opacity-50":"",placeholder:"Default Value",defaultValue:(null===I||void 0===I?void 0:I.defaultValue)?I.defaultValue:(null===I||void 0===I?void 0:I.nullValue)?"NULL":"",onInput:function(e){var t,l=e.target;(null===(t=I.dataType)||void 0===t?void 0:t.match(/text$/i))||V((function(e){var t=e;return l.value.match(/./)?delete t.notNullValue:(delete t.defaultValue,delete t.nullValue),l.value.match(/^null$/i)?(delete t.defaultValue,t.nullValue=!0):l.value.match(/./)&&(delete t.nullValue,t.defaultValue=l.value),t}))}})]}),!q&&(0,s.jsx)(d.Z,{database:N,setFieldData:V,setTableFields:h,tableFields:x,targetField:f,user:y,currentTable:j,fieldIndex:v})]}),(0,s.jsxs)("div",{className:"secondary mt-auto flex-wrap w-full xl:w-auto",children:[(0,s.jsx)("button",{type:"submit",className:"secondary mt-auto py-3 w-full md:w-auto grow",children:"Save Updates"}),(0,s.jsx)("div",{className:"button outlined gray mt-auto py-2.5 w-full md:w-auto justify-center grow",onClick:function(e){_.current&&(f=c().cloneDeep(_.current)),h((function(e){var t=c().cloneDeep(e);return v&&_.current&&(t[v]=c().cloneDeep(_.current)),t})),g&&g(!1)},children:"Cancel"})]})]})})}},24209:function(e,t,l){l.d(t,{Z:function(){return g}});var a=l(828),n=l(85893),i=l(67294),s=l(29815),r=l(27901),d=l(41352);function o(e){var t=e.targetField;if(!(null===t||void 0===t?void 0:t.richText))return null;var l=(0,a.Z)(i.useState(t.cssFiles||[]),2),o=l[0],u=l[1],c=i.useRef(null);return i.useEffect((function(){t.cssFiles=o}),[o]),(0,n.jsxs)("div",{className:"flex flex-col items-start gap-2 w-full my-4",style:{minWidth:"70px"},children:[(0,n.jsx)("span",{className:"label text-xs text-slate-500",children:"Add CSS"}),o.map((function(e,t){return(0,n.jsxs)("div",{className:"relative border border-solid border-slate-300 text-xs px-2 py-1 rounded-full",children:[(0,n.jsx)("span",{children:e}),(0,n.jsx)(d.Z,{size:20,onClick:function(){u((function(t){return t.filter((function(t){return t!==e}))}))},className:"cursor-pointer hover:opacity-60 "})]},t+1)})),(0,n.jsxs)("div",{className:"row w-full",children:[(0,n.jsx)(r.Z,{name:"css-file",placeholder:"CSS file URL",elementRef:c}),(0,n.jsx)("button",{className:"secondary outlined",onClick:function(){var e,t=null===(e=c.current)||void 0===e?void 0:e.value;(null===t||void 0===t?void 0:t.match(/./))&&u((function(e){return(0,s.Z)(new Set((0,s.Z)(e).concat([t])))}))},children:"Add"})]}),(0,n.jsx)("span",{className:"text-sm text-slate-600",children:"Add CSS files to your Rich Text field"})]})}function u(e){var t=e.targetField,l=e.setFieldData;return(0,n.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",style:{minWidth:"70px"},children:[(0,n.jsx)("label",{htmlFor:"encryption_field",children:"Encrypt?"}),(0,n.jsxs)("select",{name:"encryption_field",id:"encryption_field",className:"px-2",defaultValue:(null===t||void 0===t?void 0:t.encrypted)?"Yes":"No",onChange:function(e){l&&l((function(t){var l=t;return e.target.value.match(/yes/i)?l.encrypted=!0:(l.encrypted=!1,delete l.encrypted),l}))},children:[(0,n.jsx)("option",{value:"No",children:"No"}),(0,n.jsx)("option",{value:"Yes",children:"Yes"})]})]})}var c=l(3699);function m(e){e.targetField,e.setFieldData;return null}function f(e){var t=e.targetField;return(0,n.jsxs)("div",{className:"flex flex-col items-start gap-2 w-full",style:{minWidth:"70px"},children:[(0,n.jsx)("label",{htmlFor:"encryption_field",children:"Pattern"}),(0,n.jsx)("span",{className:"text-sm text-slate-500",children:'This describes a pattern that must be matched for this field to be valid. If you add a pattern and make a db entry that doesn\'t match, the entry will be "NULL" or an empty string or the default value.'}),(0,n.jsx)("input",{type:"text",placeholder:"Regex Pattern. Eg: '\\\\.[a-z]+'",onInput:function(e){var l,a=e.target;(null===a||void 0===a||null===(l=a.value)||void 0===l?void 0:l.length)>0?t.pattern=a.value:delete t.pattern},defaultValue:null===t||void 0===t?void 0:t.pattern}),(0,n.jsx)("input",{type:"text",placeholder:"Regex Pattern Flags. Eg: igm",onInput:function(e){var l,a=e.target;(null===a||void 0===a||null===(l=a.value)||void 0===l?void 0:l.length)>0?t.patternFlags=a.value:delete t.patternFlags},defaultValue:null===t||void 0===t?void 0:t.patternFlags})]})}var v=l(96486),x=l.n(v),h=l(59471);function p(e){var t=e.targetField,l=e.setFieldData;return(0,n.jsxs)("div",{className:"flex flex-col items-start gap-0.5 w-full",style:{minWidth:"70px"},children:[(0,n.jsx)("label",{htmlFor:"unique_field",children:"Unique Field?"}),(0,n.jsxs)("select",{name:"unique_field",id:"unique_field",className:"px-2",defaultValue:(null===t||void 0===t?void 0:t.unique)?"Yes":"No",onChange:function(e){l&&l((function(t){var l=t;return e.target.value.match(/yes/i)?l.unique=!0:(l.unique=!1,delete l.unique),l}))},children:[(0,n.jsx)("option",{value:"No",children:"No"}),(0,n.jsx)("option",{value:"Yes",children:"Yes"})]})]})}function g(e){var t=e.targetField,l=e.currentTable,s=e.database,r=e.tableFields,d=e.setTableFields,v=e.setFieldData,g=e.user,N=(e.fieldIndex,(0,a.Z)(i.useState(!1),2)),j=N[0],y=N[1],b=i.useRef(x().cloneDeep(t));return i.useEffect((function(){}),[]),(0,n.jsxs)(i.Fragment,{children:[(0,n.jsx)("span",{className:"button outlined gray mt-5 w-full xl:w-auto",onClick:function(){y(!0)},children:"More"}),(0,n.jsx)(h.Z,{open:j,onClose:function(){if(b.current){var e=x().cloneDeep(b.current);t=e}y(!1)},maxWidth:"600px",children:(0,n.jsxs)("div",{className:"m-auto flex flex-col max-w-xl w-full max-h-[90vh] overflow-y-auto",children:[(0,n.jsx)("div",{className:"w-full justify-between",children:(0,n.jsx)("span",{className:"text-xl",children:"More Options"})}),(0,n.jsx)(o,{targetField:t}),(0,n.jsx)(p,{targetField:t,setFieldData:v}),(0,n.jsx)(u,{targetField:t,setFieldData:v}),l&&(0,n.jsx)(c.Z,{targetField:t,setFieldData:v,database:s,tableFields:r,setTableFields:d,currentTable:l,user:g}),(0,n.jsx)(m,{targetField:t,setFieldData:v}),(0,n.jsx)(f,{targetField:t}),(0,n.jsx)("button",{className:"w-full outlined more-padding",onClick:function(){y(!1)},children:"Done"})]})})]})}},3699:function(e,t,l){l.d(t,{Z:function(){return d}});var a=l(828),n=l(85893),i=l(67294),s=l(86729),r=l(95264);function d(e){var t,l,d=e.targetField,o=e.setFieldData,u=(e.tableFields,e.setTableFields,e.database),c=e.currentTable,m=e.user,f=e.setActiveEdit,v=e.activeClonedTable,x=(0,a.Z)(i.useState(!!(null===d||void 0===d?void 0:d.foreignKey)),2),h=x[0],p=x[1],g=i.useState(null),N=(0,a.Z)(g,2),j=N[0],y=N[1],b=i.useState(null),T=(0,a.Z)(b,2),w=T[0],_=T[1],F=i.useState(null),C=(0,a.Z)(F,2),I=C[0],V=C[1],E=i.useState(null),S=(0,a.Z)(E,2),D=S[0],k=S[1],Z=(0,a.Z)(i.useState(!1),2),K=Z[0],R=Z[1];return i.useEffect((function(){(h||(null===d||void 0===d?void 0:d.foreignKey))&&(0,s.Z)("/api/getUserSchemaData").then((function(e){if(e.success)try{var t=e.schemaData.filter((function(e){return e.dbFullName===u.db_full_name})),l=c?t[0].tables.filter((function(e){return e.tableName!==c.tableName})):t[0].tables;if(y(l),null===d||void 0===d?void 0:d.foreignKey){var a,n=l.filter((function(e){var t;return e.tableName===(null===d||void 0===d||null===(t=d.foreignKey)||void 0===t?void 0:t.destinationTableName)}));_(n[0]),(null===(a=n[0])||void 0===a?void 0:a.fields)&&V(n[0].fields)}}catch(i){(0,s.Z)("/api/admin/clientError",{method:"post",body:{component:"ForeignKey/fetch-error-getUserSchemaData/lines-65-77",message:i.message,user:m}})}}))}),[h]),(0,n.jsxs)("div",{className:"flex flex-col items-start gap-2 w-full mt-2 relative",style:{minWidth:"70px"},children:[K&&(0,n.jsx)(r.Z,{}),(0,n.jsxs)("label",{htmlFor:"foreign_key_field",className:"flex flex-wrap items-center gap-2 mt-2",children:[(0,n.jsx)("span",{children:"Foreign Key?"}),(0,n.jsxs)("div",{className:"dropdown-wrapper reversed text-sm items-start",children:[(0,n.jsx)("span",{className:"px-2 bg-slate-200 rounded-full hover:bg-slate-100 hidden xl:flex text-slate-600",children:"Info"}),(0,n.jsx)("div",{className:"dropdown mt-0 xl:-mt-2",children:(0,n.jsx)("span",{children:"Foriegn key links the current table to another table"})})]})]}),(0,n.jsxs)("select",{name:"foreign_key_field",id:"foreign_key_field",className:"px-2",defaultValue:(null===d||void 0===d?void 0:d.foreignKey)?"Yes":"No",onChange:function(e){e.target.value.match(/yes/i)?(p(!0),o&&o((function(e){var t=e;return t.foreignKey={foreignKeyName:void 0,destinationTableName:void 0,destinationTableColumnName:void 0,cascadeDelete:!0},t}))):(p(!1),o&&o((function(e){var t=e;return delete t.foreignKey,t})))},children:[(0,n.jsx)("option",{value:"No",children:"No"}),(0,n.jsx)("option",{value:"Yes",children:"Yes"})]}),h&&j&&(0,n.jsx)(i.Fragment,{children:(0,n.jsxs)("select",{name:"foreign_key_destination_table_name",id:"foreign_key_destination_table_name",className:"px-2",defaultValue:(null===d||void 0===d||null===(t=d.foreignKey)||void 0===t?void 0:t.destinationTableName)?d.foreignKey.destinationTableName:void 0,onChange:function(e){var t,l=e.target;if(null===(t=e.target.value)||void 0===t?void 0:t.match(/--/))o?o((function(e){var t=e,l=t.foreignKey;return l&&(l.destinationTableName=void 0),t})):l.dataset.destinationTableName=void 0;else{var a=j.filter((function(t){return t.tableName===e.target.value}))[0];_(a),(null===a||void 0===a?void 0:a.fields)&&V(a.fields),o?o((function(t){var l=t,a=l.foreignKey;return a&&(a.destinationTableName=e.target.value),l})):e.target.dataset.destinationTableName=e.target.value}},children:[(0,n.jsx)("option",{value:"--",children:"--Select Table--"}),j.map((function(e,t){return(0,n.jsx)("option",{value:e.tableName,children:e.tableFullName},t+1)}))]})}),w&&I&&(0,n.jsxs)(i.Fragment,{children:[(0,n.jsxs)("select",{name:"foreign_key_destination_table_column_name",id:"foreign_key_destination_table_column_name",className:"px-2",defaultValue:(null===d||void 0===d||null===(l=d.foreignKey)||void 0===l?void 0:l.destinationTableColumnName)?d.foreignKey.destinationTableColumnName:void 0,onChange:function(e){try{var t,l=I.filter((function(t){return t.fieldName===e.target.value}))[0];if(k(l),null===(t=e.target.value)||void 0===t?void 0:t.match(/--/))return void(o&&o((function(e){var t=e,l=t.foreignKey;return l&&(l.destinationTableColumnName=void 0),t})));var a="dsql_".concat(u.user_id,"_").concat(u.db_slug,"_").concat(Date.now());o?o((function(e){var t=e;t.dataType=l.dataType;var n=t.foreignKey;return n&&(n.destinationTableColumnName=l.fieldName,n.destinationTableColumnType=l.dataType,n.foreignKeyName=a),t})):(e.target.dataset.dataType=l.dataType,e.target.dataset.destinationTableColumnName=l.fieldName,e.target.dataset.foreignKeyName=a)}catch(n){(0,s.Z)("/api/admin/clientError",{method:"post",body:{component:"ForeignKey/lines-232-264",message:n.message,user:m}})}},children:[(0,n.jsx)("option",{value:"--",children:"--Select Column--"}),I.map((function(e,t){return(0,n.jsx)("option",{value:e.fieldName,children:e.fieldName},t+1)}))]}),v&&D&&(0,n.jsx)("button",{className:"secondary w-full",onClick:function(e){var t,l;R(!0),(0,s.Z)("/api/updateClonedTableForeignKeys",{method:"post",body:{tableData:c,database:u.db_full_name,dbSlug:u.db_slug,delegated:!!(null===(t=window.location)||void 0===t||null===(l=t.search)||void 0===l?void 0:l.match(/delegated=true/i))}},!0).then((function(e){e.success?window.alert("Foreign Key Added Successfully!"):window.alert("Update Failed, Please Try again."),setTimeout((function(){f&&f(!1)}),1e3)}))},children:"Add Foreign Key"})]}),v&&(0,n.jsx)("button",{className:"light-gray w-full",onClick:function(e){delete d.foreignKey,f&&f(!1)},children:"Cancel"})]})}},64838:function(e,t,l){l.d(t,{Z:function(){return n}});var a=l(85893);l(67294);function n(e){var t=e.targetField;return(0,a.jsxs)("div",{className:"flex flex-col items-start gap-0.5",style:{minWidth:"70px"},children:[(0,a.jsx)("label",{htmlFor:"rich_text_option",children:"Text Type"}),(0,a.jsxs)("select",{name:"rich_text_option",id:"rich_text_option",className:"px-2",onChange:function(e){switch(delete t.json,delete t.richText,delete t.yaml,delete t.html,delete t.javascript,delete t.shell,e.target.value){case"plain":default:break;case"rte":t.richText=!0;break;case"json":t.json=!0;break;case"yaml":t.yaml=!0;break;case"html":t.html=!0;break;case"css":t.css=!0;break;case"javascript":t.javascript=!0;break;case"shell":t.shell=!0}},defaultValue:t.richText?"rte":t.json?"json":t.yaml?"yaml":t.html?"html":t.javascript?"javascript":t.shell?"shell":t.css?"css":"plain",children:[(0,a.jsx)("option",{value:"plain",children:"Plain Text"}),(0,a.jsx)("option",{value:"rte",children:"Rich Text"}),(0,a.jsx)("option",{value:"json",children:"JSON"}),(0,a.jsx)("option",{value:"yaml",children:"YAML"}),(0,a.jsx)("option",{value:"html",children:"HTML"}),(0,a.jsx)("option",{value:"css",children:"CSS"}),(0,a.jsx)("option",{value:"javascript",children:"Javascript"}),(0,a.jsx)("option",{value:"shell",children:"Shell"})]})]})}},59471:function(e,t,l){l.d(t,{Z:function(){return r}});var a=l(85893),n=l(67294),i=l(20745),s=l(41352);function r(e){var t=e.children,l=e.open,s=(e.setOpen,e.onClose),r=e.maxWidth;return n.useEffect((function(){if(l){var e=document.createElement("div");e.className="modal-wrapper",(0,i.createRoot)(e).render((0,a.jsx)(d,{onClose:s,maxWidth:r,children:t})),document.body.appendChild(e)}else document.querySelectorAll(".modal-wrapper").forEach((function(e){var t;null===(t=e.parentElement)||void 0===t||t.removeChild(e)}))}),[l]),(0,a.jsx)(a.Fragment,{})}function d(e){var t=e.children,l=e.onClose,i=e.maxWidth,r=(e.open,n.useRef());return(0,a.jsxs)(n.Fragment,{children:[(0,a.jsx)("div",{className:"modal-cancel",onClick:function(e){o({modalEl:e.target.closest(".modal-wrapper"),closeFn:l})}}),(0,a.jsxs)("div",{className:"modal-content",style:{maxWidth:i||void 0},ref:r,children:[t," ",(0,a.jsx)("button",{className:"ghost modal-cancel-button",onClick:function(e){o({modalEl:e.target.closest(".modal-wrapper"),closeFn:l})},children:(0,a.jsx)(s.Z,{})})]})]})}function o(e){var t,l=e.modalEl,a=e.closeFn;a&&a(),null===(t=l.parentElement)||void 0===t||t.removeChild(l)}},89594:function(e){e.exports=JSON.parse('[{"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":2e+63},{"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","maxValue":127},{"title":"MEDIUMTEXT","name":"MEDIUMTEXT","value":"0-255","description":"MEDIUMTEXT is just text with max length 16,777,215","maxValue":127},{"title":"LONGTEXT","name":"LONGTEXT","value":"0-255","description":"LONGTEXT is just text with max length 4,294,967,295","maxValue":127},{"title":"UUID","name":"UUID","valueLiteral":"UUID()","description":"A Unique ID"}]')}}]); |