mirror of
https://github.com/diced/zipline.git
synced 2025-05-11 18:36:02 +02:00
maybe fix mariadb
This commit is contained in:
parent
0bd83f731f
commit
1745298f47
4 changed files with 9 additions and 9 deletions
|
@ -2,10 +2,10 @@ import { Entity, Column, PrimaryColumn } from 'typeorm';
|
|||
|
||||
@Entity({ name: 'zipline_images' })
|
||||
export class Image {
|
||||
@PrimaryColumn('text')
|
||||
@PrimaryColumn('varchar', { length: 255 })
|
||||
public id: string;
|
||||
|
||||
@Column('text', { default: null })
|
||||
@Column('varchar', { default: null, length: 255 })
|
||||
public file: string;
|
||||
|
||||
@Column('bigint')
|
||||
|
|
|
@ -5,10 +5,10 @@ export class URL {
|
|||
@PrimaryColumn('text')
|
||||
public id: string;
|
||||
|
||||
@Column('text', { default: null })
|
||||
@Column('varchar', { default: null, length: 255 })
|
||||
public url: string;
|
||||
|
||||
@Column('text', { default: null, nullable: true })
|
||||
@Column('varchar', { default: null, nullable: true, length: 255 })
|
||||
public vanity: string;
|
||||
|
||||
@Column('bigint')
|
||||
|
|
|
@ -5,19 +5,19 @@ export class User {
|
|||
@PrimaryGeneratedColumn()
|
||||
public id: number;
|
||||
|
||||
@Column('text')
|
||||
@Column('varchar', { length: 255 })
|
||||
public username: string;
|
||||
|
||||
@Column('text')
|
||||
@Column('varchar', { length: 255 })
|
||||
public password: string;
|
||||
|
||||
@Column('text', { default: null }) /* used for gravatar avatar! */
|
||||
@Column('varchar', { default: null, length: 255 }) /* used for gravatar avatar! */
|
||||
public email: string;
|
||||
|
||||
@Column('boolean', { default: false })
|
||||
public administrator: boolean;
|
||||
|
||||
@Column('text')
|
||||
@Column('varchar', { length: 255 })
|
||||
public token: string;
|
||||
|
||||
@Column('simple-json', { default: null })
|
||||
|
|
|
@ -3,7 +3,7 @@ import { Entity, Column, PrimaryColumn } from 'typeorm';
|
|||
// this will be used for more stuff other than first setups
|
||||
@Entity({ name: 'zipline_data' })
|
||||
export class Zipline {
|
||||
@PrimaryColumn('text')
|
||||
@PrimaryColumn('varchar', { length: 255 })
|
||||
public id: string;
|
||||
|
||||
@Column('boolean', { default: true })
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue