Hier finden sich Vorlagen für den Datenbank-Import in die App.
Arsenal Waffendatenbank
Arsenal nutzt das JSON-Format. Ein Eintrag ist dabei wie folgt aufgebaut:
type GunType {
id: string
manufacturer?: string | null
model: string
manufacturingDate?: string | null
originCountry?: string | null
gunType?: string | null
functionType?: string | null
caliber?: string[] | null
serial?: string | null
permit?: string | null
acquisitionDate?: string | null
mainColor?: string | null
remarks? : string | null
images: string[]
createdAt: string
lastModifiedAt: string
status?: GunTypeStatus
shotCount?: string
tags: string[]
lastShotAt?: string
lastCleanedAt?: string
paidPrice?: string
cleanInterval?: "none" | "day_1" | "day_7" | "day_14" | "month_1" | "month_3" | "month_6" | "month_9" | "year_1" | "year_5" | "year_10"
}
type GunTypeStatus {
exFullAuto: boolean
highCapacityMagazine: boolean
short: boolean
fullAuto: boolean
grandfather: boolean
}
const emptyGun: GunType = {
"acquisitionDate": "",
"caliber": [],
"createdAt": "",
"id": "",
"images": [],
"lastCleanedAt": "",
"lastModifiedAt": "",
"lastShotAt": "",
"mainColor": "",
"manufacturer": "",
"manufacturingDate": "",
"model": "",
"originCountry": "",
"paidPrice": "",
"permit": "",
"remarks": "",
"serial": "",
"shotCount": "",
"cleanInterval": "",
"status": {
"exFullAuto": false,
"fullAuto": false,
"highCapacityMagazine": false,
"short": false,
"grandfather": false
},
"tags": []
}
[
{
"acquisitionDate": "11.6.2024",
"caliber": ["9×19mm Parabellum (9mm Luger)"],
"createdAt": "2024-06-10T08:17:55.026Z",
"id": "c472c7e8-c177-4a42-badf-549e468ed42e",
"images": ["base64string"],
"lastCleanedAt": "18.6.2024",
"lastModifiedAt": null,
"lastShotAt": "17.6.2024",
"mainColor": "#000000ff",
"manufacturer": "SIG",
"manufacturingDate": "1975",
"model": "P210-6",
"originCountry": "Schweiz",
"paidPrice": "1500",
"permit": "WES SH2009-001",
"remarks": "Special Edition",
"serial": "12345",
"shotCount": "110",
"cleanInterval": "month_1",
"status": {
"exFullAuto": false,
"fullAuto": false,
"highCapacityMagazine": true,
"short": false,
"grandfather": false,
},
"tags": ["Pistole"]
}
]