Class

BaseModel

BaseModel(arg)

Constructor

# new BaseModel(arg)

An abstract base class that extends the Model class from decorator-validation and adds timestamp functionality. All domain models in the application should extend this class to inherit common properties and behaviors.

Base model class for all domain models

Parameters:
Name Type Description
arg ModelArg.<BaseModel>

Optional initialization data for the model

View Source model/BaseModel.ts, line 10

Example
```typescript
class User extends BaseModel {
  

Members

# createdOn

Automatically set to the current date and time when the model is created

Creation timestamp for the model

View Source model/BaseModel.ts, line 38

Date

# createdOn

Automatically set to the current date and time when the model is created

Creation timestamp for the model

View Source model/BaseModel.ts, line 63

# updatedOn

Automatically updated to the current date and time whenever the model is modified

Last update timestamp for the model

View Source model/BaseModel.ts, line 43

Date

# updatedOn

Automatically updated to the current date and time whenever the model is modified

Last update timestamp for the model

View Source model/BaseModel.ts, line 69