We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f866bf5 commit c30831aCopy full SHA for c30831a
2 files changed
crates/primitives/src/js/column.ts
@@ -14,6 +14,11 @@ export class Column {
14
this.dataType = dataType || DataTypes.String;
15
}
16
17
+ uuid() {
18
+ this.dataType = DataTypes.Uuid;
19
+ return this;
20
+ }
21
+
22
string() {
23
this.dataType = DataTypes.String;
24
return this;
@@ -24,6 +29,11 @@ export class Column {
29
25
30
26
31
32
+ number() {
33
+ this.dataType = DataTypes.Number;
34
35
36
27
37
require(data: boolean) {
28
38
this.required = data;
39
crates/primitives/src/js/dataTypes.ts
@@ -1,4 +1,7 @@
1
export enum DataTypes {
2
+ Null = "Null",
3
+ Uuid = "Uuid",
4
String = "String",
- Boolean = "Boolean"
5
+ Boolean = "Boolean",
6
+ Number = "Number"
7
0 commit comments