import Column from "@entity-access/entity-access/dist/decorators/Column.js"; import Table from "@entity-access/entity-access/dist/decorators/Table.js"; import Sql from "@entity-access/entity-access/dist/sql/Sql.js"; import DateTime from "@entity-access/entity-access/dist/types/DateTime.js"; import { JsonProperty } from "@entity-access/server-pages/dist/services/ModelService.js"; @Table("IncomingSmsSource") export default class IncomingSmsSource { @Column({ dataType: "BigInt", key: true, generated: "identity"}) public textInSourceID: number; @Column({ dataType: "Char", length: 100 }) public name: string; @Column({ dataType: "Char", nullable: true}) public username: string; @Column({ dataType: "Char", nullable: true}) public encryptedPassword: string; @Column({ dataType: "Char"}) public isdPrefix: string; @Column({ dataType: "Char", nullable: true }) public keyword: string; @Column({ dataType: "Char"}) public phoneNumber: string; @Column({ dataType: "DateTime", default: () => Sql.date.now()}) public dateUpdated: DateTime; @Column({ dataType: "Char", length: 20}) public countryCode: string; @JsonProperty() public password: string; }