Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/cotton/src/testutils.ts>User

SQL Database Toolkit for Deno
Latest
class User
import { User } from "https://deno.land/x/cotton@v0.7.5/src/testutils.ts";

Properties

age: number

Represents a number column

createdAt: Date

Represents a date column with lazy default value

email: string

Represents column with validation

firstName: string

Represents a string column with custom table column name

id: number

Represents a primary key column

isActive: boolean

Represents a boolean column with standard default value

lastName: string

Represents a string column with custom table column name

password: string

Represents a hidden column

products: Product[]

Represents a has many relationship