I need to use the awesome-looking django-storages Database storage backend for a current project, but:
It can be used to map filenames to database blobs: so you have to use it with a special additional table created manually. The table should contain a pk-column for filenames (better to use the same type that FileField uses: nvarchar(100)), blob field (image type for example) and size field (bigint).
I'll admit it. ORM's have spoiled me. Its been a while since I've written an SQL statement, and I'm not at all familiar with PostgreSQL's flavor of SQL & BLOBs.
So, could someone pretty please help me out with a Postgres CREATE TABLE statement with three columns mentioned above (FILE_NAME, BLOB, FILE_SIZE), along with the appropriate column types?