entity start

This commit is contained in:
2022-09-24 00:14:51 +02:00
parent 389b8ade80
commit cf631ae2ca
6 changed files with 136 additions and 6 deletions

5
core/src/entity.ts Normal file
View File

@ -0,0 +1,5 @@
export type entity = {
uuid: string;
createdAt: Date;
updatedAt: Date;
};

View File

@ -1 +1,2 @@
export * from './test';
export * from './user';
export * from './entity';

View File

@ -1,3 +0,0 @@
export type test = {
a: string;
}

12
core/src/user.ts Normal file
View File

@ -0,0 +1,12 @@
import { entity } from "./entity";
export type user = {
name: string;
} & entity;
export type createUserBody = {
name: string;
password: string;
};
export type loginLoginUserBody = createUserBody;