You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/schema/src/res/stdlib.zmodel
+53-53Lines changed: 53 additions & 53 deletions
Original file line number
Diff line number
Diff line change
@@ -1,39 +1,39 @@
1
-
/*
1
+
/**
2
2
* Enum representing referential integrity related actions
3
3
*/
4
4
enum ReferentialAction {
5
-
/*
5
+
/**
6
6
* Used with "onDelete": deleting a referenced record will trigger the deletion of referencing record.
7
7
* Used with "onUpdate": updates the relation scalar fields if the referenced scalar fields of the dependent record are updated.
8
8
*/
9
9
Cascade
10
10
11
-
/*
11
+
/**
12
12
* Used with "onDelete": prevents the deletion if any referencing records exist.
13
13
* Used with "onUpdate": prevents the identifier of a referenced record from being changed.
14
14
*/
15
15
Restrict
16
16
17
-
/*
17
+
/**
18
18
* Similar to 'Restrict', the difference between the two is dependent on the database being used.
19
19
* See details: https://www.prisma.io/docs/concepts/components/prisma-schema/relations/referential-actions#noaction
20
20
*/
21
21
NoAction
22
22
23
-
/*
23
+
/**
24
24
* Used with "onDelete": the scalar field of the referencing object will be set to NULL.
25
25
* Used with "onUpdate": when updating the identifier of a referenced object, the scalar fields of the referencing objects will be set to NULL.
26
26
*/
27
27
SetNull
28
28
29
-
/*
29
+
/**
30
30
* Used with "onDelete": the scalar field of the referencing object will be set to the fields default value.
31
31
* Used with "onUpdate": the scalar field of the referencing object will be set to the fields default value.
32
32
*/
33
33
SetDefault
34
34
}
35
35
36
-
/*
36
+
/**
37
37
* Enum representing all possible field types
38
38
*/
39
39
enum AttributeTargetField {
@@ -49,44 +49,44 @@ enum AttributeTargetField {
49
49
ModelField
50
50
}
51
51
52
-
/*
52
+
/**
53
53
* Reads value from an environment variable.
54
54
*/
55
55
function env(name: String): String {
56
56
}
57
57
58
-
/*
58
+
/**
59
59
* Gets the current login user.
60
60
*/
61
61
function auth(): Any {
62
62
}
63
63
64
-
/*
64
+
/**
65
65
* Gets current date-time (as DateTime type).
66
66
*/
67
67
function now(): DateTime {
68
68
}
69
69
70
-
/*
70
+
/**
71
71
* Generates a globally unique identifier based on the UUID specs.
72
72
*/
73
73
function uuid(): String {
74
74
}
75
75
76
-
/*
76
+
/**
77
77
* Generates a globally unique identifier based on the CUID spec.
78
78
*/
79
79
function cuid(): String {
80
80
}
81
81
82
-
/*
82
+
/**
83
83
* Creates a sequence of integers in the underlying database and assign the incremented
84
84
* values to the ID values of the created records based on the sequence.
85
85
*/
86
86
function autoincrement(): Int {
87
87
}
88
88
89
-
/*
89
+
/**
90
90
* Represents default values that cannot be expressed in the Prisma schema (such as random()).
91
91
*/
92
92
function dbgenerated(expr: String): Any {
@@ -98,50 +98,50 @@ function dbgenerated(expr: String): Any {
98
98
function future(): Any {
99
99
}
100
100
101
-
/*
101
+
/**
102
102
* If the field value contains the search string. By default, the search is case-sensitive,
103
103
* but you can override the behavior with the "caseInSensitive" argument.
104
104
*/
105
105
function contains(field: String, search: String, caseInSensitive: Boolean?): Boolean {
106
106
}
107
107
108
-
/*
108
+
/**
109
109
* If the field value matches the search condition with [full-text-search](https://www.prisma.io/docs/concepts/components/prisma-client/full-text-search). Need to enable "fullTextSearch" preview feature to use.
110
110
*/
111
111
function search(field: String, search: String): Boolean {
112
112
}
113
113
114
-
/*
114
+
/**
115
115
* If the field value starts with the search string
116
116
*/
117
117
function startsWith(field: String, search: String): Boolean {
118
118
}
119
119
120
-
/*
120
+
/**
121
121
* If the field value ends with the search string
122
122
*/
123
123
function endsWith(field: String, search: String): Boolean {
124
124
}
125
125
126
-
/*
126
+
/**
127
127
* If the field value (a list) has the given search value
128
128
*/
129
129
function has(field: Any[], search: Any): Boolean {
130
130
}
131
131
132
-
/*
132
+
/**
133
133
* If the field value (a list) has every element of the search list
134
134
*/
135
135
function hasEvery(field: Any[], search: Any[]): Boolean {
136
136
}
137
137
138
-
/*
138
+
/**
139
139
* If the field value (a list) has at least one element of the search list
140
140
*/
141
141
function hasSome(field: Any[], search: Any[]): Boolean {
0 commit comments