2023-04-13 00:07:08 +02:00
|
|
|
// Code generated by ent, DO NOT EDIT.
|
|
|
|
|
|
|
|
package migrate
|
|
|
|
|
|
|
|
import (
|
|
|
|
"entgo.io/ent/dialect/sql/schema"
|
|
|
|
"entgo.io/ent/schema/field"
|
|
|
|
)
|
|
|
|
|
|
|
|
var (
|
2023-04-21 13:57:32 +02:00
|
|
|
// HibPsColumns holds the columns for the "hib_ps" table.
|
|
|
|
HibPsColumns = []*schema.Column{
|
|
|
|
{Name: "id", Type: field.TypeUUID, Unique: true},
|
|
|
|
{Name: "name", Type: field.TypeString, Unique: true},
|
|
|
|
{Name: "domain", Type: field.TypeString},
|
|
|
|
{Name: "breach_date", Type: field.TypeTime},
|
|
|
|
{Name: "added_date", Type: field.TypeTime},
|
|
|
|
{Name: "modified_date", Type: field.TypeTime},
|
|
|
|
{Name: "pwn_count", Type: field.TypeInt},
|
|
|
|
{Name: "description", Type: field.TypeString},
|
|
|
|
{Name: "dataclasses", Type: field.TypeJSON},
|
|
|
|
{Name: "is_verified", Type: field.TypeBool, Default: false},
|
|
|
|
{Name: "is_fabricated", Type: field.TypeBool, Default: false},
|
|
|
|
{Name: "is_sensitive", Type: field.TypeBool, Default: false},
|
|
|
|
{Name: "is_retired", Type: field.TypeBool, Default: false},
|
|
|
|
{Name: "is_spam_list", Type: field.TypeBool, Default: false},
|
|
|
|
{Name: "is_malware", Type: field.TypeBool, Default: false},
|
|
|
|
{Name: "logo", Type: field.TypeString},
|
|
|
|
}
|
|
|
|
// HibPsTable holds the schema information for the "hib_ps" table.
|
|
|
|
HibPsTable = &schema.Table{
|
|
|
|
Name: "hib_ps",
|
|
|
|
Columns: HibPsColumns,
|
|
|
|
PrimaryKey: []*schema.Column{HibPsColumns[0]},
|
|
|
|
}
|
2023-04-13 00:07:08 +02:00
|
|
|
// UsersColumns holds the columns for the "users" table.
|
|
|
|
UsersColumns = []*schema.Column{
|
|
|
|
{Name: "id", Type: field.TypeUUID, Unique: true},
|
|
|
|
{Name: "username", Type: field.TypeString, Unique: true},
|
|
|
|
{Name: "password", Type: field.TypeString},
|
|
|
|
{Name: "is_admin", Type: field.TypeBool, Default: false},
|
|
|
|
{Name: "is_active", Type: field.TypeBool, Default: true},
|
|
|
|
{Name: "created_at", Type: field.TypeTime},
|
|
|
|
{Name: "updated_at", Type: field.TypeTime},
|
|
|
|
}
|
|
|
|
// UsersTable holds the schema information for the "users" table.
|
|
|
|
UsersTable = &schema.Table{
|
|
|
|
Name: "users",
|
|
|
|
Columns: UsersColumns,
|
|
|
|
PrimaryKey: []*schema.Column{UsersColumns[0]},
|
|
|
|
}
|
|
|
|
// Tables holds all the tables in the schema.
|
|
|
|
Tables = []*schema.Table{
|
2023-04-21 13:57:32 +02:00
|
|
|
HibPsTable,
|
2023-04-13 00:07:08 +02:00
|
|
|
UsersTable,
|
|
|
|
}
|
|
|
|
)
|
|
|
|
|
|
|
|
func init() {
|
|
|
|
}
|