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,46 +1,46 @@
1
- const CfwObject = require('../lib/CfwObject.js');
2
-
3
- /**
4
- * User_companies_Base object
5
- *
6
- * @version $Id$
7
- * @copyright 2016
8
- */
9
-
10
- module.exports = class UserCompanies 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: 'user_companies',
24
- id: {
25
- companyId: {
26
- fieldType: 'int',
27
- maxlength: 20,
28
- req: 0,
29
- },
30
- },
31
- fields: {
32
- companyName: {
33
- fieldType: 'text',
34
- maxlength: 255,
35
- req: 1,
36
- },
37
- },
38
- };
39
- }
40
-
41
- insertRow(param)
42
- {
43
- param.companyId = false;
44
- return super.insertRow(param);
45
- }
46
- };
1
+ const CfwObject = require('../lib/CfwObject.js');
2
+
3
+ /**
4
+ * User_companies_Base object
5
+ *
6
+ * @version $Id$
7
+ * @copyright 2016
8
+ */
9
+
10
+ module.exports = class UserCompanies 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: 'user_companies',
24
+ id: {
25
+ companyId: {
26
+ fieldType: 'int',
27
+ maxlength: 20,
28
+ req: 0,
29
+ },
30
+ },
31
+ fields: {
32
+ companyName: {
33
+ fieldType: 'text',
34
+ maxlength: 255,
35
+ req: 1,
36
+ },
37
+ },
38
+ };
39
+ }
40
+
41
+ insertRow(param)
42
+ {
43
+ param.companyId = false;
44
+ return super.insertRow(param);
45
+ }
46
+ };