Teren-app/resources/js/Interfaces/Person.ts
Simon Pocrnjič 90a5858320 first commit
2024-10-28 21:08:16 +01:00

50 lines
890 B
TypeScript

export interface Person {
uuid: String,
nu?: Number,
first_name?: String,
last_name?: String,
full_name?: String,
gender?: String,
birthday?: Date,
tax_number?: String,
social_security_number?: String,
description?: String,
type?: TypeDefault,
group?: Group,
addresses?: Array<any>
}
export interface Contract {
uuid: String,
reference?: String,
start_date?: Date,
end_date?: Date,
type?: TypeDefault,
debtor: Person
}
export interface Client extends Person {
contracts: Array<Contract>,
}
export interface Group {
id: Number,
name?: String,
description?: String
}
export interface TypeDefault {
id: Number,
name: String,
description?: String
}
export interface Address {
id: Number,
address: String,
country: String,
type: TypeDefault,
description: String,
}