corefwnode 3.0.2 → 3.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,85 +1,85 @@
1
- const CfwObject = require('../lib/CfwObject.js');
2
-
3
- /**
4
- * user_data object
5
- *
6
- * @version $Id$
7
- * @copyright 2008
8
- */
9
-
10
- module.exports = class UsersData extends CfwObject
11
- {
12
- constructor(session)
13
- {
14
- const proxy = super(session);
15
-
16
- return proxy;
17
- }
18
-
19
- // eslint-disable-next-line class-methods-use-this
20
- tableConf()
21
- {
22
- return {
23
- tableName: 'users_data',
24
- id: {
25
- userId: {
26
- fieldType: 'int',
27
- maxlength: 20,
28
- req: 1,
29
- },
30
- },
31
- ownerField: 'userId',
32
- fields: {
33
- name: {
34
- fieldType: 'text',
35
- maxlength: 255,
36
- minlength: 2,
37
- req: 1,
38
- },
39
- surname: {
40
- fieldType: 'text',
41
- maxlength: 255,
42
- minlength: 2,
43
- req: 1,
44
- },
45
- address: {
46
- fieldType: 'text',
47
- maxlength: 255,
48
- req: 0,
49
- null: true,
50
- },
51
- city: {
52
- fieldType: 'text',
53
- maxlength: 255,
54
- req: 0,
55
- null: true,
56
- },
57
- postalCode: {
58
- fieldType: 'int',
59
- maxlength: 10,
60
- req: 0,
61
- null: true,
62
- },
63
- country: {
64
- fieldType: 'text',
65
- maxlength: 255,
66
- req: 0,
67
- null: true,
68
- },
69
- phone: {
70
- fieldType: 'int',
71
- maxlength: 20,
72
- req: 0,
73
- null: true,
74
- },
75
- oibNum: {
76
- fieldType: 'oib',
77
- maxlength: 255,
78
- req: 0,
79
- null: true,
80
- },
81
- },
82
- onduplicate: ['name', 'surname', 'address', 'city', 'postalCode', 'country', 'phone', 'oibNum'],
83
- };
84
- }
85
- };
1
+ const CfwObject = require('../lib/CfwObject.js');
2
+
3
+ /**
4
+ * user_data object
5
+ *
6
+ * @version $Id$
7
+ * @copyright 2008
8
+ */
9
+
10
+ module.exports = class UsersData extends CfwObject
11
+ {
12
+ constructor(session)
13
+ {
14
+ const proxy = super(session);
15
+
16
+ return proxy;
17
+ }
18
+
19
+ // eslint-disable-next-line class-methods-use-this
20
+ tableConf()
21
+ {
22
+ return {
23
+ tableName: 'users_data',
24
+ id: {
25
+ userId: {
26
+ fieldType: 'int',
27
+ maxlength: 20,
28
+ req: 1,
29
+ },
30
+ },
31
+ ownerField: 'userId',
32
+ fields: {
33
+ name: {
34
+ fieldType: 'text',
35
+ maxlength: 255,
36
+ minlength: 2,
37
+ req: 1,
38
+ },
39
+ surname: {
40
+ fieldType: 'text',
41
+ maxlength: 255,
42
+ minlength: 2,
43
+ req: 1,
44
+ },
45
+ address: {
46
+ fieldType: 'text',
47
+ maxlength: 255,
48
+ req: 0,
49
+ null: true,
50
+ },
51
+ city: {
52
+ fieldType: 'text',
53
+ maxlength: 255,
54
+ req: 0,
55
+ null: true,
56
+ },
57
+ postalCode: {
58
+ fieldType: 'int',
59
+ maxlength: 10,
60
+ req: 0,
61
+ null: true,
62
+ },
63
+ country: {
64
+ fieldType: 'text',
65
+ maxlength: 255,
66
+ req: 0,
67
+ null: true,
68
+ },
69
+ phone: {
70
+ fieldType: 'int',
71
+ maxlength: 20,
72
+ req: 0,
73
+ null: true,
74
+ },
75
+ oibNum: {
76
+ fieldType: 'oib',
77
+ maxlength: 255,
78
+ req: 0,
79
+ null: true,
80
+ },
81
+ },
82
+ onduplicate: ['name', 'surname', 'address', 'city', 'postalCode', 'country', 'phone', 'oibNum'],
83
+ };
84
+ }
85
+ };