-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathnameContract.model.ts
More file actions
37 lines (28 loc) · 982 Bytes
/
nameContract.model.ts
File metadata and controls
37 lines (28 loc) · 982 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
import {Entity as Entity_, Column as Column_, PrimaryColumn as PrimaryColumn_, Index as Index_} from "typeorm"
import * as marshal from "./marshal"
import {ContractState} from "./_contractState"
@Entity_()
export class NameContract {
constructor(props?: Partial<NameContract>) {
Object.assign(this, props)
}
@PrimaryColumn_()
id!: string
@Column_("int4", {nullable: false})
gridVersion!: number
@Index_()
@Column_("numeric", {transformer: marshal.bigintTransformer, nullable: false})
contractID!: bigint
@Index_()
@Column_("int4", {nullable: false})
twinID!: number
@Column_("text", {nullable: false})
name!: string
@Index_()
@Column_("varchar", {length: 11, nullable: false})
state!: ContractState
@Column_("numeric", {transformer: marshal.bigintTransformer, nullable: false})
createdAt!: bigint
@Column_("int4", {nullable: true})
solutionProviderID!: number | undefined | null
}