entity start
This commit is contained in:
5
core/src/entity.ts
Normal file
5
core/src/entity.ts
Normal file
@ -0,0 +1,5 @@
|
||||
export type entity = {
|
||||
uuid: string;
|
||||
createdAt: Date;
|
||||
updatedAt: Date;
|
||||
};
|
@ -1 +1,2 @@
|
||||
export * from './test';
|
||||
export * from './user';
|
||||
export * from './entity';
|
||||
|
@ -1,3 +0,0 @@
|
||||
export type test = {
|
||||
a: string;
|
||||
}
|
12
core/src/user.ts
Normal file
12
core/src/user.ts
Normal 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;
|
Reference in New Issue
Block a user