Authentication with firebase, Landing Page 1.Teil
This commit is contained in:
@@ -1,30 +1,50 @@
|
||||
import { sqliteTable as table, text, integer, real } from 'drizzle-orm/sqlite-core';
|
||||
import * as t from "drizzle-orm/sqlite-core";
|
||||
import * as t from 'drizzle-orm/sqlite-core';
|
||||
import { integer, real, sqliteTable as table, text } from 'drizzle-orm/sqlite-core';
|
||||
|
||||
export const Deck = table('Deck', {
|
||||
id: integer('id').primaryKey({ autoIncrement: true }),
|
||||
deckname: text('deckname').notNull(),
|
||||
bildname: text('bildname'),
|
||||
bildid: text('bildid'),
|
||||
iconindex: integer('iconindex'),
|
||||
x1: real('x1'),
|
||||
x2: real('x2'),
|
||||
y1: real('y1'),
|
||||
y2: real('y2'),
|
||||
due: integer('due'),
|
||||
ivl: real('ivl'),
|
||||
factor: real('factor'),
|
||||
reps: integer('reps'),
|
||||
lapses: integer('lapses'),
|
||||
isGraduated: integer('isGraduated'),
|
||||
},
|
||||
(table) => {
|
||||
return {
|
||||
index: t.uniqueIndex("email_idx").on(table.id),
|
||||
};
|
||||
}
|
||||
export const Deck = table(
|
||||
'Deck',
|
||||
{
|
||||
id: integer('id').primaryKey({ autoIncrement: true }),
|
||||
deckname: text('deckname').notNull(),
|
||||
bildname: text('bildname'),
|
||||
bildid: text('bildid'),
|
||||
iconindex: integer('iconindex'),
|
||||
x1: real('x1'),
|
||||
x2: real('x2'),
|
||||
y1: real('y1'),
|
||||
y2: real('y2'),
|
||||
due: integer('due'),
|
||||
ivl: real('ivl'),
|
||||
factor: real('factor'),
|
||||
reps: integer('reps'),
|
||||
lapses: integer('lapses'),
|
||||
isGraduated: integer('isGraduated'),
|
||||
user: text('user').notNull(),
|
||||
},
|
||||
table => {
|
||||
return {
|
||||
index: t.uniqueIndex('email_idx').on(table.id),
|
||||
};
|
||||
},
|
||||
);
|
||||
|
||||
export type InsertDeck = typeof Deck.$inferInsert;
|
||||
export type SelectDeck = typeof Deck.$inferSelect;
|
||||
|
||||
export interface User {
|
||||
name: string;
|
||||
picture: string;
|
||||
iss: string;
|
||||
aud: string;
|
||||
auth_time: number;
|
||||
user_id: string;
|
||||
sub: string;
|
||||
iat: number;
|
||||
exp: number;
|
||||
email: string;
|
||||
email_verified: boolean;
|
||||
firebase: {
|
||||
identities: any;
|
||||
sign_in_provider: string;
|
||||
};
|
||||
uid: string;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user