diff --git a/server/db-migrations/0.7.0.sql b/server/db-migrations/0.7.0.sql new file mode 100644 index 0000000..447ac52 --- /dev/null +++ b/server/db-migrations/0.7.0.sql @@ -0,0 +1,11 @@ +create type platform as enum ('Apple', 'Google'); +create table downloads ( + id bigint generated by default as identity primary key, + time_of_download timestamp without time zone default now() not null, + platform platform not null, + template_version int not null, + passport_id bigint not null, + issue_date timestamp without time zone not null, + address text not null, + ens_name text +); diff --git a/server/package.json b/server/package.json index 46b0884..d840a0a 100644 --- a/server/package.json +++ b/server/package.json @@ -1,6 +1,6 @@ { "name": "mobile-passport", - "version": "0.6.0", + "version": "0.7.0", "private": true, "scripts": { "dev": "next dev", diff --git a/server/pages/api/apple/v1/passes/[passTypeIdentifier]/[serialNumber].ts b/server/pages/api/apple/v1/passes/[passTypeIdentifier]/[serialNumber].ts index 868e114..7c11cd5 100644 --- a/server/pages/api/apple/v1/passes/[passTypeIdentifier]/[serialNumber].ts +++ b/server/pages/api/apple/v1/passes/[passTypeIdentifier]/[serialNumber].ts @@ -45,13 +45,14 @@ export default function handler(req: NextApiRequest, res: NextApiResponse) { // TODO // Populate the pass template + const platform: Platform = Platform.Apple const templateVersion: number = config.appleTemplateVersion const passportID: string = String(serialNumber) const issueDateTimestamp: number = 0 // TODO const address: string = '
' // TODO const ensName: string = '