18 lines
250 B
Crystal
18 lines
250 B
Crystal
|
require "uuid"
|
||
|
|
||
|
class Task
|
||
|
JSON.mapping({
|
||
|
id: String,
|
||
|
author: Int32,
|
||
|
title: String,
|
||
|
description: String,
|
||
|
column: String,
|
||
|
assigned_to: Int32?
|
||
|
})
|
||
|
|
||
|
def initialize(@title, @author, @description, @column)
|
||
|
@id = UUID.random.to_s
|
||
|
end
|
||
|
end
|
||
|
|