@trafficgroup/knex-rel 0.0.19 → 0.0.21

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.
@@ -4,6 +4,8 @@ export interface IAuth {
4
4
  password: string;
5
5
  twofaEnabled: boolean;
6
6
  twofaSecret: string | null;
7
+ emailToken: string | null;
8
+ emailVerified: boolean;
7
9
  created_at: string;
8
10
  updated_at: string;
9
11
  }
@@ -5,6 +5,7 @@ export interface IVideo {
5
5
  folderId: number;
6
6
  name: string;
7
7
  videoLocation: string;
8
+ videoOutputLocation: string | null;
8
9
  generateVideoOutput: boolean;
9
10
  videoRate: number;
10
11
  videoType: 'TMC' | 'ATR' | 'JUNCTION' | 'ROUNDABOUT' | 'PATHWAY';
@@ -0,0 +1,16 @@
1
+ import type { Knex } from "knex";
2
+
3
+
4
+ export async function up(knex: Knex): Promise<void> {
5
+ await knex.schema.alterTable('video', (table) => {
6
+ table.string('videoOutputLocation').nullable();
7
+ });
8
+ }
9
+
10
+
11
+ export async function down(knex: Knex): Promise<void> {
12
+ await knex.schema.alterTable('video', (table) => {
13
+ table.dropColumn('videoOutputLocation');
14
+ });
15
+ }
16
+
@@ -0,0 +1,18 @@
1
+ import type { Knex } from "knex";
2
+
3
+
4
+ export async function up(knex: Knex): Promise<void> {
5
+ await knex.schema.alterTable('auth', (table) => {
6
+ table.string('emailToken', 255).nullable();
7
+ table.boolean('emailVerified').notNullable().defaultTo(false);
8
+ });
9
+ }
10
+
11
+
12
+ export async function down(knex: Knex): Promise<void> {
13
+ await knex.schema.alterTable('auth', (table) => {
14
+ table.dropColumn('emailToken');
15
+ table.dropColumn('emailVerified');
16
+ });
17
+ }
18
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trafficgroup/knex-rel",
3
- "version": "0.0.19",
3
+ "version": "0.0.21",
4
4
  "description": "Knex Module",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -4,6 +4,8 @@ export interface IAuth {
4
4
  password: string;
5
5
  twofaEnabled: boolean;
6
6
  twofaSecret: string | null;
7
+ emailToken: string | null;
8
+ emailVerified: boolean;
7
9
  created_at: string;
8
10
  updated_at: string;
9
11
  }
@@ -4,8 +4,9 @@ export interface IVideo {
4
4
  id: number;
5
5
  uuid: string;
6
6
  folderId: number;
7
- name: string
7
+ name: string;
8
8
  videoLocation: string;
9
+ videoOutputLocation: string | null;
9
10
  generateVideoOutput: boolean;
10
11
  videoRate: number;
11
12
  videoType: 'TMC' | 'ATR' | 'JUNCTION' | 'ROUNDABOUT' | 'PATHWAY';