πCore Entity
The contract that provides methods for entities.
Imports
import { CoreEntityContract } from 'niro-health';import type { ICoreEntityContract } from 'niro-health';Method of Use
import { CoreEntityContract } from 'niro-health';
export class User extends CoreEntityContract {
username: string;
email: string;
password: string;
constructor(data: Partial<User>) {
super(data);
this.username = data?.username;
this.email = data?.email;
this.password = data?.password;
}
}Entities with relationships
Properties
Property
Scope
Description
Methods
Method
Scope
Description
Last updated