update readme

This commit is contained in:
lubiana 2022-04-05 00:02:52 +02:00
parent 40bd7df272
commit c3618fd3f5
Signed by: lubiana
SSH key fingerprint: SHA256:vW1EA0fRR3Fw+dD/sM0K+x3Il2gSry6YRYHqOeQwrfk
88 changed files with 7546 additions and 176 deletions

View file

@ -2,12 +2,22 @@
namespace Lubian\NoFramework\Model;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping\Column;
use Doctrine\ORM\Mapping\Entity;
use Doctrine\ORM\Mapping\GeneratedValue;
use Doctrine\ORM\Mapping\Id;
#[Entity]
class MarkdownPage
{
public function __construct(
public readonly int $id,
public readonly string $title,
public readonly string $content,
#[Id, Column, GeneratedValue]
public int|null $id = null,
#[Column]
public string $title,
#[Column(type: Types::TEXT)]
public string $content,
) {
}
}