This commit introduces the new file `brand.service.ts` under services. Specifically, it implements the `createBrand` method which handles the creation of a new brand instance in the database if there's no existing brand with the same slug name. The function returns a promise containing the operation result. A UUID is also generated as `brandId`, and several logs will be recorded in different situations. Issue: #13 Signed-off-by: Mathis <yidhra@tuta.io>
brief-05-back
Languages
TypeScript
100%