@spytecgps/nova-orm 1.4.304 → 1.4.305
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
export declare class TicketManager {
|
|
2
2
|
id: number;
|
|
3
|
+
/**
|
|
4
|
+
* What a ticket is deduped against. Named `imei` because every original caller keyed on one, but it
|
|
5
|
+
* is really an opaque subject id — the checkout reconciliation job keys on a Stripe subscription id
|
|
6
|
+
* (`sub_…`, 28 chars), which varchar(15) could not hold.
|
|
7
|
+
*
|
|
8
|
+
* 128 rather than 256 because this column leads `ixTicketManagerImeiTypeSourceExpiresAt`, and at
|
|
9
|
+
* utf8mb4 the four columns have to fit InnoDB's 3072-byte key limit. `type` and `source` take
|
|
10
|
+
* 1024 each, so 256 here overflows it by 5 bytes; 128 leaves the index at 2565 and is still four
|
|
11
|
+
* times the longest id anything puts in it.
|
|
12
|
+
*/
|
|
3
13
|
imei: string;
|
|
4
14
|
clientId: number;
|
|
5
15
|
type: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("../node_modules/tslib/tslib.es6.js"),t=require("typeorm");exports.TicketManager=class TicketManager{id;imei;clientId;type;sentAt;expiresAt;source;createdAt},e.__decorate([t.PrimaryGeneratedColumn({type:"bigint",name:"id",unsigned:!0}),e.__metadata("design:type",Number)],exports.TicketManager.prototype,"id",void 0),e.__decorate([t.Column("varchar",{name:"imei",length:
|
|
1
|
+
"use strict";var e=require("../node_modules/tslib/tslib.es6.js"),t=require("typeorm");exports.TicketManager=class TicketManager{id;imei;clientId;type;sentAt;expiresAt;source;createdAt},e.__decorate([t.PrimaryGeneratedColumn({type:"bigint",name:"id",unsigned:!0}),e.__metadata("design:type",Number)],exports.TicketManager.prototype,"id",void 0),e.__decorate([t.Column("varchar",{name:"imei",length:128}),e.__metadata("design:type",String)],exports.TicketManager.prototype,"imei",void 0),e.__decorate([t.Column("int",{name:"clientId"}),e.__metadata("design:type",Number)],exports.TicketManager.prototype,"clientId",void 0),e.__decorate([t.Column("varchar",{name:"type",length:256}),e.__metadata("design:type",String)],exports.TicketManager.prototype,"type",void 0),e.__decorate([t.Column("datetime",{name:"sentAt",precision:0}),e.__metadata("design:type",Date)],exports.TicketManager.prototype,"sentAt",void 0),e.__decorate([t.Column("datetime",{name:"expiresAt",precision:0}),e.__metadata("design:type",Date)],exports.TicketManager.prototype,"expiresAt",void 0),e.__decorate([t.Column("varchar",{name:"source",length:256}),e.__metadata("design:type",String)],exports.TicketManager.prototype,"source",void 0),e.__decorate([t.Column("datetime",{name:"createdAt",precision:0,default:()=>"CURRENT_TIMESTAMP"}),e.__metadata("design:type",Date)],exports.TicketManager.prototype,"createdAt",void 0),exports.TicketManager=e.__decorate([t.Entity("ticketManager",{schema:"nova"}),t.Index("ixTicketManagerImeiTypeSourceExpiresAt",["imei","type","source","expiresAt"],{})],exports.TicketManager);
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
var _1684483704434AddLowerCaseIndex = require('../1684483704434-addLowerCaseIndex.js');
|
|
4
4
|
var _1684483705001UpdateSecurityUserViewsV1 = require('../1684483705001-updateSecurityUserViewsV1.js');
|
|
5
|
-
var _1746434400000AddQuickSearchFulltextIndexes = require('../1746434400000-addQuickSearchFulltextIndexes.js');
|
|
6
5
|
var _1684483705002UpdateSecurityUserViewsV2 = require('../1684483705002-updateSecurityUserViewsV2.js');
|
|
6
|
+
var _1746434400000AddQuickSearchFulltextIndexes = require('../1746434400000-addQuickSearchFulltextIndexes.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
exports.addLowerCaseIndex1684483704434 = _1684483704434AddLowerCaseIndex.addLowerCaseIndex1684483704434;
|
|
11
11
|
exports.updateSecurityUserViewsV11684483705001 = _1684483705001UpdateSecurityUserViewsV1.updateSecurityUserViewsV11684483705001;
|
|
12
|
-
exports.addQuickSearchFulltextIndexes1746434400000 = _1746434400000AddQuickSearchFulltextIndexes.addQuickSearchFulltextIndexes1746434400000;
|
|
13
12
|
exports.updateSecurityUserViewsV21684483705002 = _1684483705002UpdateSecurityUserViewsV2.updateSecurityUserViewsV21684483705002;
|
|
13
|
+
exports.addQuickSearchFulltextIndexes1746434400000 = _1746434400000AddQuickSearchFulltextIndexes.addQuickSearchFulltextIndexes1746434400000;
|
package/package.json
CHANGED
package/schema.sql
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
-- nova-orm-schema-checksum:
|
|
1
|
+
-- nova-orm-schema-checksum: 2dcb65d02b2afc822385c4b41ad7579b
|
|
2
2
|
-- Nova ORM Schema Dump
|
|
3
|
-
-- Generated at: 2026-09-
|
|
3
|
+
-- Generated at: 2026-09-15T21:05:47.395Z
|
|
4
4
|
|
|
5
5
|
SET FOREIGN_KEY_CHECKS = 0;
|
|
6
6
|
|
|
@@ -3759,7 +3759,7 @@ CREATE TABLE `taskSchedule` (
|
|
|
3759
3759
|
DROP TABLE IF EXISTS `ticketManager`;
|
|
3760
3760
|
CREATE TABLE `ticketManager` (
|
|
3761
3761
|
`id` bigint unsigned NOT NULL AUTO_INCREMENT,
|
|
3762
|
-
`imei` varchar(
|
|
3762
|
+
`imei` varchar(128) NOT NULL,
|
|
3763
3763
|
`clientId` int NOT NULL,
|
|
3764
3764
|
`type` varchar(256) NOT NULL,
|
|
3765
3765
|
`sentAt` datetime NOT NULL,
|