mirror of
https://github.com/frappe/books.git
synced 2024-11-13 00:46:28 +00:00
33 lines
664 B
TypeScript
33 lines
664 B
TypeScript
export const sqliteTypeMap = {
|
|
AutoComplete: 'text',
|
|
Currency: 'text',
|
|
Int: 'integer',
|
|
Float: 'float',
|
|
Percent: 'float',
|
|
Check: 'integer',
|
|
Code: 'text',
|
|
Date: 'text',
|
|
Datetime: 'text',
|
|
Time: 'text',
|
|
Text: 'text',
|
|
Data: 'text',
|
|
Link: 'text',
|
|
DynamicLink: 'text',
|
|
Password: 'text',
|
|
Select: 'text',
|
|
File: 'text',
|
|
Attach: 'text',
|
|
AttachImage: 'text',
|
|
Color: 'text',
|
|
};
|
|
|
|
export const validTypes = Object.keys(sqliteTypeMap);
|
|
export function getDefaultMetaFieldValueMap() {
|
|
return {
|
|
createdBy: '__SYSTEM__',
|
|
modifiedBy: '__SYSTEM__',
|
|
created: new Date().toISOString(),
|
|
modified: new Date().toISOString(),
|
|
};
|
|
}
|