2025-05-02 21:43:51 +00:00
|
|
|
import { AggregateRoot, UniqueID } from "@/core/common/domain";
|
2025-05-09 10:45:32 +00:00
|
|
|
import { Result } from "@repo/rdx-utils";
|
2025-02-15 21:30:12 +00:00
|
|
|
|
2025-05-04 20:06:57 +00:00
|
|
|
export type IRoleProps = {};
|
2025-02-15 21:30:12 +00:00
|
|
|
|
2025-05-04 20:06:57 +00:00
|
|
|
export type IRole = {};
|
2025-02-15 21:30:12 +00:00
|
|
|
|
|
|
|
|
export class Role extends AggregateRoot<IRoleProps> implements IRole {
|
|
|
|
|
static create(props: IRoleProps, id: UniqueID): Result<Role, Error> {
|
|
|
|
|
const role = new Role(props, id);
|
|
|
|
|
return Result.ok(role);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
toPersistenceData(): any {}
|
|
|
|
|
}
|