update,
This commit is contained in:
60
_resources/_tecky/party-planner/backend/util/models.ts
Normal file
60
_resources/_tecky/party-planner/backend/util/models.ts
Normal file
@@ -0,0 +1,60 @@
|
||||
export interface Events {
|
||||
id: number;
|
||||
name: string;
|
||||
venue: string | null;
|
||||
start_datetime: string | null;
|
||||
end_datetime: string | null;
|
||||
creator_id: number;
|
||||
invitation_token: string;
|
||||
deleted: boolean;
|
||||
created_at: string;
|
||||
updated_at: string;
|
||||
status?: string;
|
||||
}
|
||||
|
||||
export interface Users {
|
||||
id: number;
|
||||
first_name: string;
|
||||
last_name: string;
|
||||
email: string;
|
||||
phone: string | null;
|
||||
password: string;
|
||||
created_at: string;
|
||||
updated_at: string;
|
||||
}
|
||||
|
||||
export type UsersInput = Omit<Users, 'id' | 'created_at' | 'updated_at'>;
|
||||
|
||||
export type UserPickedInput = Pick<Users, 'id' | 'created_at' | 'updated_at'>;
|
||||
|
||||
export interface Participants {
|
||||
id: number;
|
||||
event_id: number;
|
||||
user_id: number;
|
||||
created_at: string;
|
||||
updated_at: string;
|
||||
}
|
||||
|
||||
export interface DataParts {
|
||||
firstName: string[];
|
||||
lastName: string[];
|
||||
emailHost: string[];
|
||||
phoneAreaCode: string[];
|
||||
partyReason: string[];
|
||||
streetName: string[];
|
||||
food: string[];
|
||||
drink: string[];
|
||||
decoration: string[];
|
||||
other: string[];
|
||||
}
|
||||
|
||||
export interface Items {
|
||||
event_id: number;
|
||||
user_id: number;
|
||||
name: string;
|
||||
type_name: string;
|
||||
quantity: number;
|
||||
price: number | null;
|
||||
created_at: string;
|
||||
updated_at: string;
|
||||
}
|
Reference in New Issue
Block a user